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

Обсуждение задачи 1351. Хороший гнусмас – мёртвый гнусмас

Weak tests
Послано Fyodor Menshikov 19 янв 2009 12:11
Test 3: arc of fire is 0 degrees. So arc of fire 0 degrees is pretty legal.

But! I know many AC solutions that think that when arc of fire 0 degrees gnusmasses in _opposite_ direction will be killed.

Test
100 1 0 1 0
1
-1 0

YES is wrong answer.

I suggest to remove test with arc of fire 0 degrees and to write in statement that arc of fire strictly greater than 0. And add to timus problemset problem "Good Gnusmas – Dead Gnusmas. Version 2" without any limitations on size of arc of fire i.e. with limitation [0; 360) degrees. Arc greater than 180 degrees can be defined quite well because we know that first range is left and the second is right.

Edited by author 19.01.2009 12:29
Re: Weak tests
Послано Sandro (USU) 20 янв 2009 03:28
Yes, 0 degrees arc is legal in this problem. We added tests with the same idea as your test. Thank you.

Edited by author 20.01.2009 03:29