Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:Sample IO

Posted by wei_wenzhe at 2007-12-18 15:41:13 on Problem 3471
In Reply To:Sample IO Posted by:hadi at 2007-12-15 18:32:40
> Hi!
>  Could you please explain the sample input?
>  the first one is (x-1)*(x+1)*(x+1), so the roots are -1,-1,1 : So why -1,1?
>  the second one is (x+1)*(x+1), so the roots are -1,-1: Why in this case we should output -1 twice but in the previous one only once?

In fact,the polynomial is x^4 + x^3 - x - 1 = (x+1)(x-1)(x^2+x+1)
so.........

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator