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:用逆元wa到不行 很想知道这道题有没有人用逆元过的啊~

Posted by 305636397 at 2011-07-05 10:03:31 on Problem 1845
In Reply To:用逆元wa到不行 很想知道这道题有没有人用逆元过的啊~ Posted by:alpc56 at 2009-09-10 18:28:49
逆元 不知道是不是这种:x^0+x^1+x^2+x^3..x^n=(x^(n+1)-1)/(x-1)

如果是的话,肯定错,因为,我们求x^(n+1)时候mod了9901,造成(x-1)>(x^(n+1)-1)

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