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

wcwswswws Please AC's people come in. [3] // Problem 1489. Points on a Parallelepiped 14 Oct 2006 16:44
Can you tell me why I am wrong in test 2 if you was wrong in test2 once?
Olympic Bear Re: Please AC's people come in. [2] // Problem 1489. Points on a Parallelepiped 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)
Oleg Strekalovsky [Vologda SPU] Re: Please AC's people come in. // Problem 1489. Points on a Parallelepiped 10 May 2009 00:39
Check variant, when points situated on one border!!!
MOPDOBOPOT (USU) Re: Please AC's people come in. // Problem 1489. Points on a Parallelepiped 2 Aug 2012 23:13
Olympic Bear, I had same problem and your method rocks! :D

Edited by author 02.08.2012 23:28