ENG
RUS
Timus 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
hint:
Posted by
xurshid_n
23 Jun 2012 19:02
check all x = p/q, rational numbers ( -100 <= p <= 100, 1 <= q <= 100),
find P'(x) = 0 roots , (v[0], v[1], .. v[k] -> P'(v[i]) = 0).
try find roots with binary search in [ v[i] .. v[i+1] ] !!!!!
http://en.wikipedia.org/wiki/Casus_irreducibilis
http://en.wikipedia.org/wiki/Rational_root_test
http://en.wikipedia.org/wiki/Cubic_function
© 2000–2024
Timus Online Judge Team
. All rights reserved.