Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:Sample IOIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator