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 1769. Old Ural Legend

Question about Input
Posted by dAFTc0d3r [Yaroslavl SU] 11 Apr 2010 13:32
"The only input line contains the nonempty string consisting of decimal digits carved on the stone."

while ( c != EOF ) => WA#19
while ( c >= '0' && c <= '9' ) => AC.

That is the question. Why?
Discrepancy with the statement.
Re: Question about Input
Posted by Vladimir Yakovlev (USU) 11 Apr 2010 14:03
The line is a sequence of characters terminated by a newline (CR LF characters)
Re: Question about Input
Posted by dAFTc0d3r [Yaroslavl SU] 11 Apr 2010 14:16
Thank you for responding! =)