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

Обсуждение задачи 1027. Снова D++

For those, who got WA#1
Послано Leonid (SLenik) Andrievskiy 15 июл 2009 17:23
I suppose test #1 is like this:
...
(*my commentary*)(*
 my commentary with end of line*)
(*(*my comment with two open brackets *)
(12+13=45)
(34+56
)
...
I think the first test is checking how can you work with EndOfLine symbol. It is allowed to be in any commentary and in any arithmetic expression. But if you change EndOfLine with whitespace (' '), remember, that ' ' is not allowed in an arithmetic expression!
P.S. I replaced EndOfLine with '$' symbol and got AC.

Edited by author 15.07.2009 17:24
Re: For those, who got WA#1
Послано Frankie 29 ноя 2011 19:21
thx I didn't really think about that :)
> replaced EndOfLine with '$' symbol
why would you do that? that's a stupid patch - you've just got lucky with your AC; it wouldn't pass if one of the expressions contained the actual '$' :)
i just processed 0x0d and 0x0a as usual expression symbols