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 1312. Tray

WA on test 18! Help me, please! Why it can be? Here is my program!
Posted by Ilya Rasenstein (Lyceum #40) 20 Aug 2005 19:34


My solution is a full search! We should find all places for every plate: between two plates, plate & wall, 2 walls!!!

Edited by author 04.09.2005 15:17

Edited by author 04.09.2005 15:17

Edited by author 05.09.2005 21:11
Re: WA on test 18! Help me, please! Why it can be? Here is my program!
Posted by Kit (Vologda SPU) 4 Sep 2005 19:41
It is problem with rounding. When I changed in my program "write(x: 0: 5)" into "write(x: 0: 10)", I got AC.
Hope, it will help you.
Please, delete your code, others can profit by it.
Re: WA on test 18! Help me, please! Why it can be? Here is my program!
Posted by Ilya Rasenstein (Lyceum #40) 5 Sep 2005 21:13
Thank you very much! Now I got AC! Thank you, Kit! You're super cool code analyser! Thank you!
Re: WA on test 18! Help me, please! Why it can be? Here is my program!
Posted by Ilya Rasenstein (Lyceum #40) 5 Sep 2005 21:14
I've deleted my code, as you had advised! :)