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:此題不能用逆元求和。gcd(p-1,9901)可能等於9901In 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator