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

precision questions (!)
Posted by nikonoff (ONPU) 3 Sep 2009 13:08
It is amasing, but I have AC without using long arithmetics and some advanced math!
Just recurrently solving equations P'(x) = 0 with binary search for polynomial roots between stationary points taking into account multiplicity of roots on each step.
C++ double is enough! with epsilon = 1e-12.
BTW. epsilon = 1e-9 give WA_35...