Hi Amit, I have only 1 suggestion that seems of use: scanf()
In production code it's a dirty and unsafe little function that can get you into trouble a lot. However, when it comes to code-jamming I find it highly effective at parsing well-defined input with very little coding time. There are other similarly "dangerous" functions in C and C++ that I've found useful in code-jam. Personally I've switched from c++ (last few years) to c# because I find the c# environment more familiar and forgiving. But c++ was definitely fun while I was using it! Good Luck on your next round, Bob -- 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/49c0d7b0-6c1e-46ff-ac1e-cdc3ce57ab2d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.