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 1640. Circle of Winter

Precision
Posted by Filip Franik 14 Apr 2016 15:16
The statement describes the precision as 10^-9, but in the second example I see "1.41421356237309" This number has 14 digits behind decimal point. I tried submitting answers with precision 9, 14 and 16. They all WA#1 even though my calculations have to be correct. Does someone know what's the correct precision?

Edited by author 14.04.2016 15:20

Edited by author 14.04.2016 15:20
Re: Precision
Posted by retired 14 Apr 2016 15:51
Are you using a high enough precision type? And hopefully don't output anything extra like "result="? Show your code or something.