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 1793. Tray 2

WA25
Posted by bsu.mmf.team 16 Oct 2010 16:10
people! who has any ideas?
Re: WA25
Posted by Stav_team 16 Oct 2010 16:32
What about test 13? What is test ??!?!?!
Re: WA25
Posted by CABALA 16 Oct 2010 16:40
Check if the plate fits in the tray
Re: WA25
Posted by Stav_team 16 Oct 2010 17:33
I check plate if in tray but WA 13 !!!
Re: WA25
Posted by Oleg Strekalovsky [Vologda SPU] 17 Oct 2010 02:32
bsu.mmf.team wrote 16 October 2010 16:10
people! who has any ideas?
Do you found test or reason for WA 25?
Re: WA25
Posted by Ibragim Atadjanov (Tashkent U of IT) 17 Oct 2010 03:15
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
Re: WA32 please help
Posted by Ibragim Atadjanov (Tashkent U of IT) 17 Oct 2010 03:28


Edited by author 17.10.2010 03:39
Re: WA25
Posted by Oleg Strekalovsky [Vologda SPU] 17 Oct 2010 03:28
Ibragim Atadjanov (Tashkent U of IT) wrote 17 October 2010 03:15
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
Re: WA25
Posted by Ibragim Atadjanov (Tashkent U of IT) 17 Oct 2010 03:39
thanks your test helped me a lot. Thanks again
Re: WA25
Posted by bsu.mmf.team 17 Oct 2010 13:37
Yes! It was a very stupid mistake! I checked if radius of plates on the height d is not greater than a and not grater than b. But I should check their diameter instead it! This fact costed me 13 fail submissions...
Re: WA25
Posted by melkiy 18 Oct 2010 00:13
I've read all the advice: my code meets all of them. Any other suggestions on WA25? Maybe someone is ready to look at my code? My e-mail is in my info. Thanks for any help.
Re: WA25
Posted by MAK 18 Oct 2010 15:32
I made a stupid mistake while reading the input data. First I read bottom sides and then top sides. Surprisingly, this solution bring me to WA25 and half-an-hour debugging.
Re: WA25
Posted by melkiy 18 Oct 2010 19:06
It turned out I had read data in the same wrong manner and also got WA25! MAK, your advice was the most useful in this discussion ))
Re: WA25
Posted by D-305 19 Oct 2010 23:06
Try this test:
9 15 1
1 2
1 5
1

Answer is NO.
Re: WA25
Posted by alp 26 Feb 2011 00:45
Why NO?
First (d=2)koord: 2 2
Second (d=5) koord: 4 10

I think YES, but WA 25...
Re: WA25
Posted by alp 26 Feb 2011 18:28
i understood...
Re: WA25
Posted by Dmitri Belous 9 Oct 2017 20:25
This test helped me on WA25:
20 28 1
1 2
11 12
1
Answer: NO.