http://codeforces.net/contest/145/submission/28183892
I keep missing Test Case #58 on this problem because my answer does not have enough elements. Does my program RTE before printing out the last 2 elements, or is my IO flawed in some way that prevents it from reading in the last few queries?
Please help, and thanks in advance! vamaddur