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 1294. Mars Satellites

Note to the solution of the test number 3
Posted by Alflex 25 Feb 2011 21:49
The printing of the answer in C++ should be, e.g., in the form:
cout << "Distance is "
     << setiosflags(std::ios_base::fixed)
     << setprecision(0)
     << 1000.0*sqrt(dist) << " km.";
where dist is double value. You don't need to round off the answer with the help of some functions.