[gcj] Getting "Runtime error" as result but don't have a clue why.

2018-04-06 Thread tz-yang tang
import java.util.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int t = in.nextInt(); for (int i = 0; i < t; i++) { int lower = in.nextInt(); int upper = in.nextInt(); int

Re: [gcj] Are there any issues with python submission I should know about?

2018-04-06 Thread Fabrice Didierjean
Le dimanche 1 avril 2018 10:10:46 UTC+2, Xiongqi ZHANG a écrit : > Would you share your python solution? Maybe we can take a look. Here mine, .. keep having "Runtime Error" import sys def guess_nb(a, b): if a > b: buff = a a = b b = buff guessnb = int((b - a) /

Re: [gcj] Countries and Friend in Scoreboard

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
The country flags should be enabled now if you go check the scoreboard of the practice round. The friends feature is not there yet, but we have it in the works. Best, Pablo On Fri, Apr 6, 2018, 12:06 Martín Fixman wrote: > In previous CodeJams it was possible to find

[gcj] Why submssions results are different in the problems section and in the scoreboard?

2018-04-06 Thread Diego Palacios
I don't understand if it is an error or why I see different results in the submissions results of the problems section of practice round, and in the scoreboard. This happens to me in the Bathroom Stalls problem of practice session. I made 4 attemps and all of them passed all visible test sets.

[gcj] Re: Keep running in TIME_LIMIT_EXCEEDED on C

2018-04-06 Thread Stefan Djokovic
Thank you so much! I didn't even consider the problem was the fact that I wasn't using a new line in the printf, so much wasted time! D: Thank you again! Gonna be super-careful next time -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To

[gcj] Different results in problems and scoreboard of practice session?

2018-04-06 Thread Diego Palacios
Hello, in the problem bathroom stalls of the practice session I did 4 attempts. All of them passed the visible test sets, but it appears that the first one has a wrong answer in the hidden test, and the rest have a judgement skipped in the hidden test. However, in the scoreboard it appears that

Re: [gcj] python interactive solution

2018-04-06 Thread Bartholomew Furrow
Sure! Here's my solution in Python 3: T = int(input()) COR = 'CORRECT' SMALL = 'TOO_SMALL' BIG = 'TOO_BIG' for qw in range(1, T+1): a, b = map(int, input().split()) n = int(input()) while True: mid = (a + b + 1) // 2 print(mid, flush=True) result = input().strip() if result == COR: break elif

[gcj] Practicing on old problems

2018-04-06 Thread eatmore
On the old GCJ website, it is possible to practice on old problems at any time, even without logging in. Will this be possible with the new system? -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop

Re: [gcj] Haskell libraries in Google Codejam

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi Martin, We are looking into adding both languages and libraries for existing languages. The most up to date information about what exact version is installed can be found in the FAQs. Best, Pablo On Fri, Apr 6, 2018, 12:10 Martín Fixman wrote: > Haskell has a huge

[gcj] Re: Senate Evacuation

2018-04-06 Thread Benjamin Jones
On Friday, April 6, 2018 at 3:02:59 PM UTC-4, ENN_ESS wrote: > Hi, > > In code jam practice problem number 2, Senate Evacuation, does it make > difference between the following output for test case#3. > > Expected Output: C C AB > My Output: CC BA In this case, both outputs are valid. -- You

[gcj] Re: how to run python testing tool

2018-04-06 Thread ghost9992706
On Saturday, April 7, 2018 at 1:15:18 AM UTC+5:30, akshit bhatia wrote: > Hello, > > I am trying to solve the interactive programming question: Number guessing. > > I created the logic and tested it on my local IDLE. It is working fine. > I could not figure out how to test it with python testing

[gcj] Re: Will common libraries be available?

2018-04-06 Thread Narut
On Friday, April 6, 2018 at 2:02:45 PM UTC-5, Bernard Teo wrote: > On Sunday, March 25, 2018 at 7:03:57 PM UTC+8, meir wrote: > > As we are forced to run on Google servers will common libraries be made > > available? > > For instance in Java I would like guava collections and > >

[gcj] CRUISE

2018-04-06 Thread ENN_ESS
So, below is my code written in python. This code is fairly working in IDE. But, I tried to upload this code 5 times and each time judgement fails. I am new to GCJ and don't know exactly where I am making mistake. T = int(input()) result = [] for i in range(T): a = input() a =

[gcj] Solutions in Java Open JDK....?

2018-04-06 Thread Xandrieth Xs
Anyone who got the solutions in Java (Open JDK)? -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to

[gcj] "The judgment was skipped" is shown for a solution which is in fact correct

2018-04-06 Thread eatmore
During the practice round, I submitted two solutions to the problem Number Guessing. The first one failed because I didn't select the language, while the second one was correct. According to the scoreboard, it passed both test sets, but in the list of submissions, it is shown that it only

Re: [gcj] "The judgment was skipped" is shown for a solution which is in fact correct

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi eatmore, Thanks for the feedback. There was indeed a bug causing this, but we thought we fixed it, and some users reporting similar issues confirmed it was fixed for them. Is this still happening if you see your submissions now after refreshing? Can you try an incognito window? If the problem

[gcj] Sample Java code for solving interactive problems

2018-04-06 Thread daffy
Is it possible to provide sample Java code for solving interactive problems? The FAQ has sample code for the normal problems. Thanks! -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails

[gcj] how to run python testing tool

2018-04-06 Thread akshit bhatia
Hello, I am trying to solve the interactive programming question: Number guessing. I created the logic and tested it on my local IDLE. It is working fine. I could not figure out how to test it with python testing tool. As my program is in java. I supplied the command: python3 testing_tool.py

[gcj] python interactive solution

2018-04-06 Thread Yu Wang
Hi, Could anyone post a working solution for the interactive problem using python? I just can't seem to get it to work, and when I use the testing script, the script just seems to stop and gives no output (and I can't seem to break/keyboard interrupt out of it) My code is attached below:

Re: [gcj] Solutions in Java Open JDK....?

2018-04-06 Thread Bartholomew Furrow
Yeah, though I just used the normal JDK to solve. This is for Steed 2: Cruise Control. import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for (int qw = 1; qw <= T; qw++) { double t = 0;

[gcj] Re: Are there any issues with python submission I should know about?

2018-04-06 Thread ENN_ESS
This is my solution to cruise control using python 3. Can you please help me where exactly my judgement is failed? T = int(input()) result = [] for i in range(T): a = input() a = a.split(" ") destination = int(a[0]) horses = int(a[1]) min = 0 travelled = 0 r = 0

Re: [gcj] Practicing on old problems

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
It's not possible right now, but we are working on it. Stay tuned. Best, Pablo On Fri, Apr 6, 2018, 12:15 eatmore wrote: > On the old GCJ website, it is possible to practice on old problems at any > time, even without logging in. Will this be possible with the new

[gcj] Re: The Practice Session is running!

2018-04-06 Thread Marko Ilić
On Friday, 30 March 2018 22:06:40 UTC+2, Ian Tullis wrote: > Our optional Practice Session is running now, and it will continue until > April 1 at 18:00 UTC. We encourage you to give the new platform a try! > > > - Ian, for the Code Jam team Is there a possibility to open some kind of

[gcj] I got runtime errors for my solution but have no idea what is wrong with it.

2018-04-06 Thread Anamika Mathur
import java.util.*; //codejam 2018 practice round Question C:Speed 2 class Horse{ public static void main(String args[]) { Scanner sc=new Scanner(System.in); int t=0; while(sc.hasNextInt()) { t=sc.nextInt(); break; }

[gcj] Re: Are there any issues with python submission I should know about?

2018-04-06 Thread Rishit Vora
I got the following error when i tried to run the test tool for the first challenge of practice round: Failed to start running your code. Error: [WinError 193] %1 is not a valid Win32 application My python version is 3.6 Thanks in advance! -- You received this message because you are

Re: [gcj] "The judgment was skipped" is shown for a solution which is in fact correct

2018-04-06 Thread eatmore
On Friday, 6 April 2018 22:33:40 UTC+3, Pablo Heiber wrote: > Thanks for the feedback. There was indeed a bug causing this, but we thought > we fixed it, and some users reporting similar issues confirmed it was fixed > for them. Is this still happening if you see your submissions now after >

[gcj] The judgment was skipped

2018-04-06 Thread Charles
What does this response mean? -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [gcj] Practice Session 2018 scoreboard

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi Michael, The functionality to look at other's codes is not rolled out yet, but it's coming soon, please stay tuned! Best, Pablo On Sun, Apr 1, 2018 at 1:23 PM Michael V. Antosha wrote: > Hello all! > > Is it a way to look at the source code of solutions? > I can

Re: [gcj] Are there any issues with python submission I should know about?

2018-04-06 Thread Alex
Similar issue here, with both Python 2 and 3. Local output: python3 testing_tool.py python2.7 A.py Your code finishes with exit status 0. Your code doesn't have stderr output. Congratulations! All test cases passed :) python3 testing_tool.py python3.6 A.py Your code finishes with exit status 0.

[gcj] Countries and Friend in Scoreboard

2018-04-06 Thread Martín Fixman
In previous CodeJams it was possible to find the countries of the users in the scoreboard, and to filter them by some friend list. This was extremely useful (and fun!) since it allowed you to easily compare yourself to some peers. Are there any plans to bring this back to the new format? -- You

Re: [gcj] Are there any issues with python submission I should know about?

2018-04-06 Thread Yu Wang
I also was not able to successfully run my code. I've attached it below: import sys def main(): cases = int(sys.stdin.readline()) for case in range(cases): a,b = [int(n) for n in sys.stdin.readline().split()] response = '' while response != 'CORRECT':

[gcj] Re: Are there any issues with python submission I should know about?

2018-04-06 Thread ENN_ESS
This is my solution to C. Can anybody help me find out what is wrong with it T = int(input()) result = [] for i in range(T): a = input() a = a.split(" ") destination = int(a[0]) horses = int(a[1]) min = 0 travelled = 0 r = 0 for j in range(horses): b =

[gcj] Haskell libraries in Google Codejam

2018-04-06 Thread Martín Fixman
Haskell has a huge ecosystem of standard commonly used libraries that are easy to install on GHC, while the base install is small and relatively minimal. I was surprised that libraries like [`Control.Monad.Extra`]( https://hackage.haskell.org/package/extra-1.6.5/docs/Control-Monad-Extra.html),

[gcj] Messages on the mailing list

2018-04-06 Thread Bartholomew Furrow
It appears that the high volume of messages today is messages that people sent last week. I'm assuming that they were caught in a moderation queue. I'm also assuming that the Code Jam admins are going to shut down the mailing list during the contest. *If you have something to ask during the

[gcj] Senate Evacuation

2018-04-06 Thread ENN_ESS
Hi, In code jam practice problem number 2, Senate Evacuation, does it make difference between the following output for test case#3. Expected Output: C C AB My Output: CC BA -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe

Re: [gcj] Are there any issues with python submission I should know about?

2018-04-06 Thread Neelam Shah
The same issue happened to me too. I am not sure why so? On Sun, Apr 1, 2018, 3:42 AM Doron Veltzer wrote: > I solved all 4 programs on my machine's python (3) but they won't pass the > online testing, is there some tab size or other syntax issue I am missing > and

[gcj] Re: Will common libraries be available?

2018-04-06 Thread Bernard Teo
On Sunday, March 25, 2018 at 7:03:57 PM UTC+8, meir wrote: > As we are forced to run on Google servers will common libraries be made > available? > For instance in Java I would like guava collections and > appache-commons-* > > > Also, I was thinking other JVM languages could be sort of

Re: [gcj] The judgment was skipped

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi, Any test after your first failed test is skipped and not judged. Additionally, any hidden test sets in any submission that is not the last one is skipped, because they can't contribute to your score. There was a small bug in the UI during the practice round, that should be fixed now, that

Re: [gcj] Sample Java code for solving interactive problems

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
There are sample codes for the interactive problem in the practice session in its analysis: https://codejam.withgoogle.com/2018/challenges/0130/analysis/0523 On Fri, Apr 6, 2018 at 12:45 PM daffy wrote: > Is it possible to provide sample Java code for

Re: [gcj] Different results in problems and scoreboard of practice session?

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
This is from a bug that has now been fixed. Please reload the page. You should see the hidden tests skipped for every submission except the last. Best, Pablo On Fri, Apr 6, 2018 at 12:42 PM Diego Palacios wrote: > Hello, in the problem bathroom stalls of the practice session

Re: [gcj] Messages on the mailing list

2018-04-06 Thread Luke Pebody
But we can wish you luck. Good luck! Enjoy the questions and the challenges! On Fri, 6 Apr 2018, 9:34 pm Bartholomew Furrow, wrote: > It appears that the high volume of messages today is messages that people > sent last week. I'm assuming that they were caught in a moderation

Re: [gcj] "The judgment was skipped" is shown for a solution which is in fact correct

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Ok, thanks for confirming and for the extra feedback. Won't fix those now so close to a round starting since it's not critical, but we'll make the UI simpler to use for future rounds. Best, Pablo On Fri, Apr 6, 2018 at 1:16 PM eatmore wrote: > On Friday, 6 April 2018

Re: [gcj] Re: The Practice Session is running!

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi, We apologize but the tight schedule didn't allow us to run this. Fortunately, the Qualification Round is long and the penalty won't impact your advancement, so you can use as much time as you need from the round to try out the system before or after actually solving enough problems to

Re: [gcj] Why submssions results are different in the problems section and in the scoreboard?

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Hi, This is from a bug that has now been fixed. Please recheck, you should see Hidden tests skipped for all but your last submission (unless a visible test is wrong for the last one, in which case the next tests will also be skipped). Best, Pablo On Fri, Apr 6, 2018 at 12:39 PM Diego Palacios

Re: [gcj] Re: how to run python testing tool

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
The execution line seems correct. It's possible that something in your program is incorrectly blocking before sending enough output to the judge and so both your program and the judged are blocked waiting for the other and that's why you see no output. I can't help debug your code, but if you try

Re: [gcj] python interactive solution

2018-04-06 Thread 'Pablo Heiber' via Google Code Jam
Also, there's solutions in every language here in the analysis: https://codejam.withgoogle.com/2018/challenges/0130/analysis/0523 On Fri, Apr 6, 2018 at 1:48 PM Bartholomew Furrow wrote: > Sure! Here's my solution in Python 3: > > T = int(input()) >

[gcj] The 2018 Qual Round has started!

2018-04-06 Thread 'Ian Tullis' via Google Code Jam
Hi Everyone, The Qualification Round has officially begun! We will temporarily be putting messages in this group on hold during the qualification round and will resume as normal after 02:00 UTC on Sunday, April 8, 2018. If you have any questions or