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
1588
. Jamaica
Denis
What are the rules of rounding?
[2] // Problem
1588. Jamaica
10 Dec 2007 02:16
Alias (Alexander Prudaev)
Re: What are the rules of rounding?
[1] // Problem
1588. Jamaica
10 Dec 2007 11:46
double dist = ...;
printf("%0.0lf\n", dist);
writeln(round(dist));
Vedernikoff Sergey
Re: What are the rules of rounding?
// Problem
1588. Jamaica
10 Dec 2007 19:24
It's better to use round(ans + 1e-8) to avoid possible tricky tests with answers near x.5
© 2000–2025
Timus Online Judge Team
. All rights reserved.