i'm a bit suspicious about the test cases for this problem, i've got AC on the uva judge, and here i get WA on every single test case... could someone please check them?
ulice
I tried your code on one of the test cases, and it gave the correct answer. But try replacing that while !=Eof scanf . Maybe this is the problem.
thanks for your reply. i've removed the eof check, still 0/10...
i think something is wrong with test cases, because when i tried that task a while ago I got 0/10 too ...
i hope there's a way to fix this...
Only admin can fix this. We must wait for him.