ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1297. Палиндромы

IMPORTANT! Problem statement not correct!
Послано Grigor Gevorgian 7 ноя 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!
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 8 ноя 2008 11:22
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!
Послано Sandro (USU) 8 ноя 2008 16:04
OK. Now all tests contain lines ending with '\n'.
Re: IMPORTANT! Problem statement not correct!
Послано Armen Tsirunyan 17 дек 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.