Not sure but could be the last 'endl' for the last line you
intentionally avoided.
Note that UVa reports WA on mis-formatting, instead of PE (long ago since
host migration).
The while loop judging cin.eof() could also fail it if the input file has
extra lines that although the test cases are read
Hi,
I believe it is a very simple problem but still getting WA... :(
Could you anyone please help me spotting the mistake?
http://ideone.com/dAsYdK
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To post to this group, send email to google