Re: [gcj] Problem D Fashion Show

2017-04-12 Thread Leandro Coutinho
Thank you. And thanks Luke too. Maybe a future problem could change to: - Whenever any two models share a row or column, this row or column must have at least one +. - Whenever any two models share a diagonal of the grid, this diagonal must have at least one x. Do you think it

Re: [gcj] Problem D Fashion Show

2017-04-12 Thread Paul Smith
No. Whenever two symbols are in the same row, one of them must be a +. The column has nothing to do with it. The middle row has 3 such pairs - the x and the + are in the same row (this is ok because one of them is a +) The + and the o are in the same row (this is ok because one of them is a +)

Re: [gcj] Problem D Fashion Show

2017-04-12 Thread Leandro Coutinho
Ok. But I think the sentence is wrong (or at least very misleading). Maybe it should be: The middle row has a pair of models (x and o) that does not include a + *in their columns*. On Wed, Apr 12, 2017 at 7:04 PM, Luke Pebody wrote: > Yes, but of any two models on a row or

Re: [gcj] Problem D Fashion Show

2017-04-12 Thread Luke Pebody
Yes, but of any two models on a row or column, one must be a +. Since there are two on that row that are not a +, that condition is not satisfied On 12 Apr 2017 10:58 p.m., "newbie007" wrote: > https://code.google.com/codejam/contest/3264486/dashboard#s=p3 > [quote] >

[gcj] Problem D Fashion Show

2017-04-12 Thread newbie007
https://code.google.com/codejam/contest/3264486/dashboard#s=p3 [quote] ... x+o .+. The middle row has a pair of models (x and o) that does not include a +. [/quote] I didn't understand this part. The middle row HAS a + :( -- You received this message because you are subscribed to the Google

Re: [gcj] Problem C Bathroom Stalls - Verification of output

2017-04-12 Thread Joseph DeVincentis
Paul's technique is how I solved Bathroom stalls. Because there can be a very large number of stalls, you can't simulate every stall, but if you just keep track of how many intervals of empty stalls of each size that there are, then you can do all intervals of one size at once (which all split the

Re: [gcj] Problem C Bathroom Stalls - Verification of output

2017-04-12 Thread Bartholomew Furrow
I shared your intuition, but actually it's incorrect. Start with N=23. Add a person. Now you have 2 gaps of size 11. Add two people. Now you have 4 gaps of size 5. Add four people. Now you have 8 gaps of size 2. You've added seven people already. You'll add eight more before you get to the last

Re: [gcj] Qualification Round Question - Bathroom Stalls

2017-04-12 Thread Paul Smith
Very well communicated. The problem is I think your step 4. Iteration-1: oo == S1 : (L=0,R=3,min(LR)=0,max(LR)=3) S2 : (L=1,R=2,min(LR)=1,max(LR)=2) S3 : (L=2,R=1,min(LR)=1,max(LR)=2) S4 : (L=3,R=0,min(LR)=0,max(LR)=3) According to the deterministic selection rules: 1.

Re: [gcj] Problem C Bathroom Stalls - Verification of output

2017-04-12 Thread Paul Smith
500 255. First step, the 500 turns into a 250 and a 249 (k=1) Second step, the 250 turns into a 125 and 124, and the 249 turns into 2 more 124s (k=3) Third step, the 125 turns into 2 62s, the 3 124s turn into 3 62s and 3 61s (k=7) Fourth step, the 5 62s turn into 5 31s and 5 30s, the 3 61s turn

Re: [gcj] Re: Analysis is up for Qualification Round. Take a look!

2017-04-12 Thread Paul Smith
"Whenever two models share a row or column, at least one of the two must be a +." Therefore, it is not possible to have two x's share a row, nor share a column, that would violate this rule (neither of them are + if both are x). It is also not possible for two o's to share a row or column, as this

Re: [gcj] wrong output submitted

2017-04-12 Thread 'Pablo Heiber' via Google Code Jam
Hi, I just answered this to a similar request on a different thread: --- (...) if you submit a wrong answer, there is no possibility to submit any other thing, even if it was by mistake, as the terms and conditions don't allow for re-submissions. I am sorry this happened to you, but we need to

Re: [gcj] I submitted good code and wrong output

2017-04-12 Thread 'Pablo Heiber' via Google Code Jam
Hi, I am sorry you didn't receive a response, I don't know what may have happened there. In any case, if you submit a wrong answer, there is no possibility to submit any other thing, even if it was by mistake, as the terms and conditions don't allow for re-submissions. I am sorry this happened to

[gcj] Re: [Bathroom Stalls] Can have other algorithm to solve this problem?

2017-04-12 Thread Adla Sutej
Well I used Dynamic programming to slove this question. Is ur code taking too to solve much time to solve large data set or ur logic is not supporting long integers?Because i think your while loop increment part is too fast!. its a good increment but i didnt checked whether ur logic is correct

[gcj] Qualification Round Question - Bathroom Stalls

2017-04-12 Thread Adebowale Odunlami
I have some problems with the question C of the qualification round of the contest. I did not find the deterministic selection rules to be consistent with the example given especially case 1. I felt that I either did not understand the question very well or there was something wrong. I wrote

[gcj] Problem C Bathroom Stalls - Verification of output

2017-04-12 Thread Filip Bačić
Hi, I am trying to figure out why my solution wasn't right. I couldn't even solve Small Input 1 and now I took someones solution from the scoreboard who solved it and when I compared my output with that one (on C-small-1-attempt0.in) I found out that on 100 cases my output is different on 5 of

[gcj] Re: Analysis is up for Qualification Round. Take a look!

2017-04-12 Thread Alexander Lukyanov
I must be missing something, but I don't understand how in the problem D the rules are restated from Whenever any two models share a row or column, at least one of the two must be a +. Whenever any two models share a diagonal of the grid, at least one of the two must be an x. to:

[gcj] Problem C Bathroom Stalls - Verification of output

2017-04-12 Thread Filip Bačić
I am trying to figure out why my solution wasn't right. I couldn't even solve Small Input 1 and now I took someones solution from the scoreboard who solved it and when I compared my output with that one (on C-small-1-attempt0.in) I found out that on 100 cases my output is different on 5 of

Re: [gcj] Analysis about languages

2017-04-12 Thread Federico Pousa
This website, https://www.go-hero.net/jam/17, has at least some of the statistics you want On Tue, Apr 11, 2017 at 6:25 AM, Luciano Quercia wrote: > Is there some analysis about which languages have been used? > At least some percentages about the file extension of

[gcj] Re: [Bathroom Stalls] Can have other algorithm to solve this problem?

2017-04-12 Thread Amine Belahbib
Hello, This should depends on the number if it's an odd or not: double dx = Math.floor ((N-K) /lastPow) + 1; But I didn't test to confirm ... On Monday, April 10, 2017 at 3:41:52 PM UTC+1, Nam Nguyen Hoang wrote: > When i try to solve the "Bathroom Stalls" problem, I reach to this solution >

[gcj] I submitted good code and wrong output

2017-04-12 Thread lisklusownik
Hello. As I said, by a mistake I sent wrong output and good code for one of the problems which resulted in a lacl of qualifivation. Is it possible to runmy code on Google servers to confirm validity ofm y program and assign points to me? I wrote an email, however still without response.

[gcj] Re: Analysis about languages

2017-04-12 Thread Luciano Quercia
Il giorno mercoledì 12 aprile 2017 15:14:06 UTC+1, Luciano Quercia ha scritto: > Is there some analysis about which languages have been used? > At least some percentages about the file extension of the code submitted? > > I'm curious to know if they show some correlations between the language and

Re: [gcj] Analysis about languages

2017-04-12 Thread Andrey Ponomarev
https://www.go-hero.net/jam/17 2017-04-11 12:25 GMT+03:00 Luciano Quercia : > Is there some analysis about which languages have been used? > At least some percentages about the file extension of the code submitted? > > I'm curious to know if they show some correlations

[gcj] Analysis about languages

2017-04-12 Thread Luciano Quercia
Is there some analysis about which languages have been used? At least some percentages about the file extension of the code submitted? I'm curious to know if they show some correlations between the language and the speed or correctness. E.g., the languages most used, the languages with the most