To admins: please specify precision
Current tests contain max 2 digits after decimal point. Could you specify it in the problem statement?
Else there is no solution to this problem. Without this limit specified a test can have a lot of digits after decimal point so that it is even impossible to read it within time limit.