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

Обсуждение задачи 1423. Басня о строке

Either incomplete statement or weak tests
Послано Fyodor Menshikov 13 дек 2008 23:03
Statement says that length of string S is N characters. But statement says nothing about length of string T. It only says that T may be got from S using cyclic shifts. But there may be a mistake getting T from S. It is not said what kind of mistake can happen - only replacement of characters (then length of T must always be equal to the length of S) or also addition or removal of characters.

Now in all tests lengths of S and T are equal. I think that it would be better either to change statement (and say that length of T is also N characters) or add tests for different length S and T. In the second case _many_ authors (I estimate 3/4) would lose their ac.

Еxample of test that my program would fail:
1
a
aa
The statement is fixed (-)
Послано Sandro (USU) 14 дек 2008 00:20