1. If you don't flush, the output can just stay in the output buffer of you program, not to reach the judge.
2. Unless you find that your code will exceed 150 queries, most likely you have a hidden bug in your program, especially those "array out of bounds". I guess you're also qualified. Aren't you? :-) On Tuesday, April 7, 2020 at 8:57:10 AM UTC+8, Hari Krishnan wrote: > > This was an interesting problem. I had a few questions though: > > 1. I got WA for b=20 first. Then I realized I had not added `flush=True` > for the print statements. After that it worked. Is this because of the > randomness of the judge or a problem in my algorithm? > > 2. It works for b=20, but doesn't work for b=100. Any thoughts? I'm using > the same solution as the one mentioned in the analysis. > > Thanks and congrats to all those who qualified! > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-code/20d9350e-01fd-4e83-b73f-92a90001683b%40googlegroups.com.