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

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

Advice and test
Послано Nikolay Sayfuranov 6 июн 2003 23:54
I get AC from the second attempt, and
if you want to get AC allways check that input:
(*)*)
Output must be NO
And:
(*)
Output must be YES
I hope this is helps you!
Sorry, I was mistaken :-)
Послано Nikolay Sayfuranov 7 июн 2003 00:01
The amendment: for the input (*) you must have output NO, because
there is no closing comments!!! All before that mystake is true.
What do u mean??
Послано Ural_Happy New Year! 11 июн 2003 15:42
what do you mean that?
why
(*)*) should be no??
and if the input is:
(*(**)
(**)*)
what's the correct output??
YOU ARE WRONG!!
Послано baddiex 29 авг 2003 12:35
Sorry to say , the example you gave,
example: "(*)*)" should outpu YES;
because you consider the first ')' as some word in comment,so its use
is not to match ,so this sentence is right;
But i can't deny your two example is very useful to everyone!
Послано baddiex 29 авг 2003 12:37
> Sorry to say , the example you gave,
> example: "(*)*)" should outpu YES;
> because you consider the first ')' as some word in comment,so its
use
> is not to match ,so this sentence is right;
>
Re: What do u mean??
Послано XiangGuangTe 22 апр 2004 15:26
(*(**) is 'YES' Because the second '(*' are the word in comment.

(**)*) is 'NO' Because the last '*)' has no '(*' with it.