Give me please any hints how to output the answer "with the maximal possible accuracy".

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".

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".

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