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

Slightly wrong tests
Posted by Fyodor Menshikov 20 Jan 2009 23:09
In statement: 1 <= |X1| , |Y1|, |X2|, |Y2| <= 30000
0 <= |Xi|, |Yi| <= 30000

In test 6 there is number with absolute value 30001. This number cannot cause overflow, but it is not good that the test does not correspond to the statement.
Fixed (-)
Posted by Sandro (USU) 20 Jan 2009 23:50
Re: Fixed (-)
The term "slightly wrong" sounds funny, especially in sport programming. What if I use hash that relies upon the fact that |X| <= 30000???

Edited by author 21.01.2009 01:53
Re: Fixed (-)
Posted by Fyodor Menshikov 21 Jan 2009 02:06
It would be funny if you use hash in this problem.

This is a geometrical problem, the only danger is to exceed int limit. 30001 was definitely not dangerous in this problem. But it hindered defensive programming style of debugging.
Re:
Posted by Q 22 Jan 2009 18:46
The code removed after getting AC.

Edited by author 25.01.2009 07:03