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/c1801ad5-bac2-45db-a120-8196eb688bf7%40googlegroups.com.