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 |
逆着算就可以了吧In Reply To:我没取模,我是当出现超大整数的时候就跳出判断了,因为那时已经不可能再使最后结果为0了。 Posted by:rovingcloud at 2007-11-30 11:50:54 比如说如果想判断a_n x^n + .... + a_1 x + a_0 = m是否成立,就判一下m-a_0是否能被x整除,不能整除就不可能了,能整除的话就除一下,然后接着往下判 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator