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 1489. Points on a Parallelepiped

Please AC's people come in.
Posted by wcwswswws 14 Oct 2006 16:44
Can you tell me why I am wrong in test 2 if you was wrong in test2 once?
Re: Please AC's people come in.
Posted by Olympic Bear 15 Oct 2006 16:10
I have got WA2, because I had incorrect region checking
(I used only x or y coordinate). When I used x and y I got AC.
e.g. checking of  bottom region is:
if (b+c<=y && y<=b+c+b && c <= x && x<=c+a)
Re: Please AC's people come in.
Posted by Oleg Strekalovsky [Vologda SPU] 10 May 2009 00:39
Check variant, when points situated on one border!!!
Re: Please AC's people come in.
Posted by MOPDOBOPOT (USU) 2 Aug 2012 23:13
Olympic Bear, I had same problem and your method rocks! :D

Edited by author 02.08.2012 23:28