Passing local test tool does not mean your solution will also pass the final 
test.

Testing tool is simply used for checking input/output flow and format. The test 
case provided is almost certain to be trivial.

In your case, you should stop reading from stdin when you saw 'WRONG_ANSWER' 
because the program that interact with yours will no longer providing any data.

Besides, your binary search is incorrect.
Try case like
a = 3, b = 4, solution = 4
you can easily check that your solution will keep checking if 3 is correct 
answer, and being told that 3 is TOO_SMALL and never asking for 4 (which is the 
correct answer)

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/d1d9acc5-aef5-4765-9634-270cc4290203%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to