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 1864. Get-Together at Den's

Pages: Previous 1 2
Re: What is WA#9
Posted by MatrixDeity 23 Nov 2017 18:24
Hi, everyone!

I had WA#9 too, but I wrote 'long double' instead of 'double' and got AC. It means it was precision's trouble.

Edited by author 23.11.2017 18:25
Re: What is WA#9
Posted by Hristo Nikolaev (B&W) 5 Dec 2022 21:16
I had the same problem.
changing double to long double didn`t help,
but adding 0.0001 to the result before casting it to int got my code AC.
Apparently it`s an epsilon problem.
Pages: Previous 1 2