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 1002. Phone Numbers

be careful with gets(...) when i replace it by scanf("%s",..) a got AC
Posted by Alias (Alexander Prudaev) 22 Feb 2007 13:14
maybe inut files has some extra spaces (surplus)...
They don't. (+)
Posted by Orlangur [KievNU] 8 Mar 2007 00:11
They don't.

Notice that gets() adds '\n' symbol to the end of line when you reopen stdin, just like fgets(). I spent so much time to fix this mistake :(