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

Обсуждение задачи 1287. Каналы на Марсе

Test #4 is incorrect!
Послано Vlad Veselov 10 апр 2004 16:03
I think that following two input routines are the same:
#1, gets AC
-------------------------
ReadLn(N);
For I := 1 To N Do
 begin
  For J := 1 To N Do
   begin
    Read(Ch);
    <work>
   end;
  ReadLn;
 end;
----------------------
#2, gets WA on test 4
----------------------
Read(N);
Read(Ch);
For I := 1 To N Do
 For J := 1 To N Do
  begin
   While Not((Ch = 's')Or(Ch = 'S')) Do Read(Ch);
   <work>
   Read(Ch);
  end;
-----------------------------
Where am I mistake?
Re: Test #4 is incorrect!
Послано LeXuS[Alex Kalugin] 11 апр 2004 17:21
in windows - end of string is a 2 symbols: ord (ch)=13 and
ord (ch)=10
Re: Test #4 is incorrect!
Послано LeXuS[Alex Kalugin] 11 апр 2004 23:28
Please send me our sourse code.
J get WA on test#4 :~))
Re: Test #4 is incorrect!
Послано Gheorghe Stefan 12 апр 2004 15:06
I got accepted with simple algorithm.
There is no incorrect tests.
My thoughts
Послано Vlad Veselov 13 апр 2004 19:43
to Gheorghe Stefan:I didn't say that it's impossible to get AC. I got it too.
I ask you are input routines the same. I think they are. Profound parts of this two programs are the same too, so why don't they give the same result?
to JUDGES: can you give any comments?
Re: Test #4 is incorrect!
Послано Vladimir Yakovlev (USU) 18 окт 2004 01:15
Tests were corrected.
Problem was rejudged.

Thank you.