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 1666. Vasya Ferrari

What metod who use?
Posted by Nurbek_[KTMU MANAS] 20 Dec 2008 17:18
Please write what method or algorithm you used. Thanks.
Re: What metod who use?
Posted by demo 21 Dec 2008 09:28
if the polynomial can be factorized to the form (x2+mx+n)*(x2+px+q),by expanding it,we can get four equation of coefficients,one of them is nq=d,notice |d|<=20000,we can enumerate its factor and check whether all the equation are meeted.the same to other forms