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 1297. Palindrome

IMPORTANT! Problem statement not correct!
Posted by Grigor Gevorgian 7 Nov 2008 22:04
The problem says :"the input contains a single LINE".
LINE is assumed to end with '\n' symbol,and I got TLE writing

cin.get(c);
while(c!='\n')
{...cin.get(c);}

then I changed this to
while(cin>>c) and got AC,but this kind of input ends with EOF character,NOT with '\n'!
Admins,please fix this!
Re: IMPORTANT! Problem statement not correct!
Where have you read that "LINE is assumed to end with '\n' symbol"??? Is in written in Wikipedia or any other respectable resource?
Line is just a set of symbols in the input file, so all stuff for this problem is correct.
Re: IMPORTANT! Problem statement not correct!
Posted by Sandro (USU) 8 Nov 2008 16:04
OK. Now all tests contain lines ending with '\n'.
Re: IMPORTANT! Problem statement not correct!
Posted by Armen Tsirunyan 17 Dec 2008 20:32
Actually a LINE is not supposed to end with '\n'. What the term "Single LINE" really implies is that there are no printable characters AFTER '\n' symbol IF the latter exists.