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 1632. Lasers

Show all messages Hide all messages

Re: Give me please any hints how to output the answer "with the maximal possible accuracy". Vedernikoff 'Goryinyich' Sergey (HSE: АОП) 8 Feb 2009 16:51
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
Do you store the answer in double?
Re: Give me please any hints how to output the answer "with the maximal possible accuracy". Vedernikoff 'Goryinyich' Sergey (HSE: АОП) 8 Feb 2009 21:24
Yes, tests for this problem are weak, so double is more than enough
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". Vedernikoff 'Goryinyich' Sergey (HSE: АОП) 9 Feb 2009 04:01
Yes, during the contest I also thought the problem was in tricky tests. But after fixing minor bugs program got AC immediately...