ENG  RUS Timus Online Judge
Online Judge
Problems
Authors
Online contests
Site news
Webboard
Problem set
Submit solution
Judge status
Guide
Register
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

## Discussion of Problem 1632. Lasers

Give me please any hints how to output the answer "with the maximal possible accuracy".
Posted by Al.Cash 8 Feb 2009 15:45
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Just many digits after decimal point. But here 8 digits gave me AC, but you may output, for example, 12-14.

Edited by author 08.02.2009 16:51
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Posted by Al.Cash 8 Feb 2009 17:54
Do you store the answer in double?
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Yes, tests for this problem are weak, so double is more than enough
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Posted by Al.Cash 9 Feb 2009 00:45
Thank you for information! I had WA on the contest, but now I'll try to solve this problem more accurate.
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Yes, during the contest I also thought the problem was in tricky tests. But after fixing minor bugs program got AC immediately...