Well the case a = 3 is not supposed to happen as problem limit specify a = 0 
(unless it has changed since Friday).

Envoyé de mon iPhone

> Le 1 avr. 2018 à 21:51, Xiongqi ZHANG <zhangxion...@gmail.com> a écrit :
> 
> 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 google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> 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.

-- 
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 google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/61F27436-E011-411D-97DD-08290A304839%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to