|
|
back to boardShow all messages Hide all messagesWA25 bsu.mmf.team 16 Oct 2010 16:10 people! who has any ideas? What about test 13? What is test ??!?!?! Check if the plate fits in the tray I check plate if in tray but WA 13 !!! Re: WA25 Oleg Strekalovsky [Vologda SPU] 17 Oct 2010 02:32 people! who has any ideas? Do you found test or reason for WA 25? Re: WA25 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: WA25 Oleg Strekalovsky [Vologda SPU] 17 Oct 2010 03:28 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:31Re: WA25 Ibragim Atadjanov (Tashkent U of IT) 17 Oct 2010 03:39 thanks your test helped me a lot. Thanks again 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. 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. 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 )) Edited by author 17.10.2010 03:39 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... Try this test: 9 15 1 1 2 1 5 1 Answer is NO. Why NO? First (d=2)koord: 2 2 Second (d=5) koord: 4 10 I think YES, but WA 25... This test helped me on WA25: 20 28 1 1 2 11 12 1 Answer: NO. |
|
|