ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1423. String Tale

Either incomplete statement or weak tests
Posted by Fyodor Menshikov 13 Dec 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 (-)
Posted by Sandro (USU) 14 Dec 2008 00:20