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

dAFTc0d3r [Yaroslavl SU] Question about Input [2] // Problem 1769. Old Ural Legend 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.
Vladimir Yakovlev (USU) Re: Question about Input [1] // Problem 1769. Old Ural Legend 11 Apr 2010 14:03
The line is a sequence of characters terminated by a newline (CR LF characters)
dAFTc0d3r [Yaroslavl SU] Re: Question about Input // Problem 1769. Old Ural Legend 11 Apr 2010 14:16
Thank you for responding! =)