|
|
back to boardCan you tell me why I am wrong in test 2 if you was wrong in test2 once? 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) Check variant, when points situated on one border!!! Olympic Bear, I had same problem and your method rocks! :D Edited by author 02.08.2012 23:28 |
|
|