ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1154. Mages Contest

Be careful!
Posted by 2rf [Perm School #9] 8 Aug 2009 17:09
In this problem, last line of input can end not with EOF but with just newline character. However, I read it like this:

while ((c=getchar()) != EOF) kol[d[c]]--;

and wasted about 20 submissons and 1,5 hours of time to find and fix it.
Re: Be careful!
Posted by gongshaoqing 8 Aug 2009 19:58
thanks
谢谢