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 1602. Elevator

For those stuck on WA#11
Posted by Linas 19 Oct 2008 22:36
I too did not know what was wrong with my solution, but got accepted when replaced:

for (int i = n; i >= 1; i--)
    if (time[i] < time[besti]) besti = i;

with:

for (int i = n; i >= 1; i--)
    if (time[i] + epsilon < time[besti]) besti = i;

With epsilon = 1e-9.
Good luck! :)
Re: For those stuck on WA#11
Posted by bsu.mmf.team 7 Mar 2010 01:01
Thank you very much. You really helped me: I did the same thing and got AC.
Re: For those stuck on WA#11
Posted by [Mu3aHTpOn] 11 Aug 2014 17:44
for wa7 too work.. thx

Edited by author 11.08.2014 17:44