[gcj] Re: About output of problem D

2011-05-09 Thread meir
This was my favorite problem, since the solution is so easy and yet many people were confused. They also gave a complex example for the 3rd sample input even though there is never a need to hold down any element not in it's position. Statistically this was the hardest problem with only 58% solving

[gcj] Re: 2012 Qualification Round - Problem C/Large & Problem D

2012-04-18 Thread meir
You should think of the time complexity of your algorithms, If you solved problem C small with time complexity n^2 (as I suspect,without looking at your code) It would work well for small input but not for large. Most solutions I saw(including my own) worked in n*log(n) time which is fine for the l

Re: [gcj] Best Language for code jam

2013-04-14 Thread meir
ve for n=10^100 So in short, pick a language for coding time not run time. Meir On Sunday, April 14, 2013 9:54:04 AM UTC+3, Olaf Doschke wrote: > The speeds of C/C++ are quite equal. Since C++ is the advanced language, I'd > prefer it. C might win, but for a high price of offering

[gcj] Re: programming contest control system

2013-04-16 Thread meir
Not compiling the code on the server is a huge advantage, it allows writing in any language, or a mixture of languages. And gives users complete control of the runtime. It also simplifies the server side significantly both less server resources and no need to worry about sandboxing rouge code. O

[gcj] Good Luck second input

2013-04-28 Thread meir
I was expecting a contest analysis by now but didn't see one so I'll try this way. Though I didn't participate in round 1A I tried to solve the Good Luck problem but only get ~10% correct with the parameters of the second input and wanted to share my approach and ask for comments. First I find all

[gcj] Re: Good Luck second input

2013-04-28 Thread meir
Summing the log of the count is equivalent to multiplying them, I was using Long and not BigInt, It is conceivable there was a simple numeric overflow. On Monday, April 29, 2013 4:37:09 AM UTC+3, Nate Bauernfeind wrote: > A correct answer I read through was very similar and I tried rewriting it

[gcj] Re: Code performance concerns

2014-04-13 Thread meir
On Monday, March 24, 2014 10:04:17 PM UTC+2, Shivang Gupta wrote: > Hi, > > Are the solutions judged for performance as well, in terms of lines of code, > or execution time, or memory footprint, etc.? Has anybody ever run into a > problem where they had to be careful about this aspect, specially

[gcj] Re: Any thoughts about the rules?

2014-10-09 Thread meir
is to give much fewer points to the small inputs, unless there is some real challenge there. All in all Code Jam ha a great format which keeps me coming back year after year. Looking forward to compete next year. Meir On Thursday, October 9, 2014 1:46:32 AM UTC+3, Bartholomew Furrow wrote:

Re: [gcj] codejam2015

2015-04-12 Thread meir
If you take your solution for small, and just replace the multiplier by min(M,12 + M % 12) (can probably be made tighter) you should be able to solve the large in time. I also checked the product of the input suffix matches the product of the output but I'm not sure this is required to meet the

[gcj] Re: Do you think you have a chance to reach the final round?

2015-04-14 Thread meir
It's not about getting to the final round. The final round is only 25 people, and there are ~12000 still competing, out of more then 50K people registered. Obviously the vast majority of us won't make it to the final round, that doesn't mean we won't have fun. I believe almost all those who mak

[gcj] Re: A strange claim in the analysis of Problem D (qualification round)

2015-04-15 Thread meir
The statement is correct. When you aren't required to use a specific X-omino it is easy to fill any connected shape divisible by X with X-ominos. Only being required to use a specific X-omino causes problems but that is not the case with the quoted statement. On Wednesday, April 15, 2015 at

[gcj] Re: A strange claim in the analysis of Problem D (qualification round)

2015-04-15 Thread meir
Clarification, you can do it when it is a rectangle with a jotted line through it. more complicated shapes can be an issue even without a required X-omino. On Wednesday, April 15, 2015 at 5:17:59 PM UTC+3, meir wrote: > The statement is correct. > When you aren't required to use a

Re: [gcj] Re: A strange claim in the analysis of Problem D (qualification round)

2015-04-16 Thread meir
omino, and we preserver the 0 modulo x result. So we can fill until the end. On Wednesday, April 15, 2015 at 5:20:53 PM UTC+3, Paul Smith wrote: > No meir, that's not true. > > > > #X# > XXX > > > The 4 Xs are connected.  4 is divisible by 2, but you ca

[gcj] annotated Java code for round1b B large

2015-05-03 Thread meir
I did not solve problem B during the contest, so I read the solution by pashka and annotated his code according. The basic approach is to allocate empty rooms so as to maximize the number of noisy walls they reduce, 4 walls removed,then 3 walls and finally 2 walls. This is the code by pashka, I

[gcj] How was fractiles (qualification D) checked

2016-04-12 Thread meir
I understand how to construct a correct solution, yet there are many correct solutions and It alludes me how this was verified? Did you attempt to construct a contradicting example, is this something which is guaranteed to catch all incorrect submissions? -- You received this message because

[gcj] Round 3 Problem D(Go++) small

2016-06-11 Thread meir
;0?" sub-sequence any trailing 1s with the final 1 and a correct number of "?" from the first program. and with alternating "10" of sufficient length and the "?" from first program it should be possible to produce any prefix. What is wrong with my analysis/co

[gcj] Re: Round 3 Problem D(Go++) small

2016-06-11 Thread meir
On Saturday, June 11, 2016 at 8:56:00 PM UTC+3, eatmore wrote: > Each program must contain at least one instruction. Thank you, can't believe I missed it. I was starring at this for the last hour of the competition. The fix is trivial and I just checked it on practice it works: val Array(n,

[gcj] Round 3 analysis thread - crowd source attemp

2016-06-24 Thread meir
So It's been two weeks and still no analysis for GCJ round 3. I thought I'd start a thread with the aim to cover all questions of round 3. I will start with what I know, and hope someone will add an explanation to the tougher problems. Problem A was fairly simple with nearly everyone in the c

[gcj] Re: Could the code jam contest qualify top performers for an O1 or EB1 visa to the US?

2017-02-01 Thread meir
On Tuesday, January 31, 2017 at 6:30:29 PM UTC+2, Ahmed Layouni wrote: > Was wondering if the contest could qualify top contestants for O1/EB1 visa? > and if so what percentile threshold would be required? > > Thanks! The criteria for O1 visas aren't very specific, and obviously code jam can't i

[gcj] What stumped people in Stable Neigh-bors

2017-04-24 Thread meir
I noticed only 31% correct in large attempts for Stable Neigh-bors. Where were the pitfalls causing so many to think they had a solution but still fail somewhere, are there extra edge cases. I can see many edge cases you can miss which will affect both small and large but don't see edge cases ex

[gcj] I like running my code locally :(

2018-03-14 Thread meir
ion not as mandatory. I don't see how the change levels the playing field, unless you go with much larger inputs, the language differences are still very significant, trumping hardware variability. Meir - an unhappy code-jammer. -- You received this message because you are subscribe

[gcj] Will common libraries be available?

2018-03-25 Thread meir
As we are forced to run on Google servers will common libraries be made available? For instance in Java I would like&expect guava collections and appache-commons-* Also, I was thinking other JVM languages could be sort of supported by adding their library in and having contestants "compile"

[gcj] Finding another competitor on the score board?

2018-04-07 Thread meir
I seem unable to find a way to look up another player in the scoreboard. I used to do this, to track both real life friends and other notable competitors I become aware of. Is this feature missing from current incarnation? or am I just not seeing it? -- You received this message because you a

[gcj] Keeping old rounds open for training?

2018-04-11 Thread meir
I would recommend publishing test files after the round. For the interactive this is insufficient but if the testing code is reasonably independent we could ask it be published as well after the round. -- You received this message because you are subscribed to the Google Groups "Google Code Jam

[gcj] Scala support is an illusion

2019-04-06 Thread meir
I was happy to see Scala was added to the supported languages. It's my language of choice and writing in a language I don't use daily not only slows me down it isn't as fun. I was unable to use Scala at all in the qualification round. I wrote short O(input length) solutions for the first two pr

Re: [gcj] Scala support is an illusion

2019-04-07 Thread meir
Here are the first two solutions I wrote in Scala: import java.io.BufferedReader import scala.io.Source /** * Created by meir on 06/04/19. */ object Solution { val not4 = "[^4]".r def processTest(in: BufferedReader): String = { val n = i

[gcj] Re: Scala support is an illusion

2019-04-08 Thread meir
On Sunday, April 7, 2019 at 11:22:55 PM UTC+3, Nate Bauernfeind wrote: > Hmmm. These solutions are correct? I thought a and b had to be positive. > Thought for sure zero was not allowed based on the description. Since there is for sure at least a single '4' in the original a and b are both posit

Re: [gcj] How was fractiles (qualification D) checked

2016-04-12 Thread Meir Maor
ll values of n given in the input. > > > > Le mar. 12 avr. 2016 à 14:39, meir a écrit : > >> I understand how to construct a correct solution, yet there are many >> correct solutions and It alludes me how this was verified? >> Did you attempt to constr