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 1351. Good Gnusmas – Dead Gnusmas

Weak tests
Posted by Fyodor Menshikov 19 Jan 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
Posted by Sandro (USU) 20 Jan 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