I also had that problem but when I checked if big plate is placed in tray (2 * r > b here r is the radius of cone at the height d (d < h) and b is small side of tray).

But now I have wa on test31

good luck

Thanks. I can add, that we must check:

0 <= x + r && x + r <= w && 0 <= x - r && x - r <= w &&

0 <= y + r && y + r <= h && 0 <= y - r && y - r <= h;

for both plate x,y - coordinates of plate center's, r - minimal radius of plate, w,h - max(a,b), min(a,b)

Test:

2 10 1

1 3

1 3

2

Ans:

NO

*Edited by author 17.10.2010 03:31*