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

double vs float
Posted by yujj 28 May 2008 19:11
I'm use double and got WA#11. But with float i got AC.
What wrong with double? Bad tests?
Re: double vs float
Posted by Howard Liu 31 May 2008 03:30
When comparing calculate time _t_ to the current _best_ time, where both variables are doubles, use e.g.
if (t + 1e-9 < best)