ENG
RUS
Timus 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
yujj
double vs float
[1] // Problem
1602. Elevator
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?
Howard Liu
Re: double vs float
// Problem
1602. Elevator
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)
© 2000–2024
Timus Online Judge Team
. All rights reserved.