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

逆着算就可以了吧

Posted by wywcgs at 2007-11-30 12:03:18 on Problem 3471 and last updated at 2007-11-30 12:03:46
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:
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