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:此題不能用逆元求和。gcd(p-1,9901)可能等於9901

Posted by sleepingpig at 2010-12-05 18:37:14 on Problem 1845
In Reply To:此题不能用逆元求和。gcd(p-1,9901)可能等于9901 Posted by:trfhjkl456789 at 2010-11-27 20:46:14
偶然回顾了这题...
注意一下的话应该还是可以的吧?
将p^0+p^1+...中的p改成p % 9901即可
可以自己想一下为什么这样会是对的

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