Resubmitting the same 'WA verdict' solution gets accepted
I submitted the following two codes, which are essentially the same but one gives WA, the other got accepted.
WA code
AC code
(compare the two solutions to see the differences)
ICPC NA North Central and South Division