474

There is a problem with online judge results for this problem.

It accepts for n=6 as AC result as : 2^-6 = 1.562e-2  and for n=7 AC result as : 2^-7 = 7.812e-3

But it should be 2^-6 = 1.563e-2 and 2^-7 = 7.813e-3 respectively using approximation method after 3rd decimal. So to get AC from UVA OJ I heard coded this two cases,which is lame 🙂 (for the OJ as there is a same problem UVA-545 just a bit different which accepts these results ).

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *