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 jsjhoubo at 2007-11-29 17:03:17 on Problem 3233
In Reply To:解法~~~.~ Posted by:ecbtnrt at 2007-10-05 17:33:32
> 令f(1)=A%m;
>   f(2)=A + A^2 = A(A+I)=A*(f(1)+I)%m;
>   f(3)=A + A^2 + A^3 = A( (A+A^2)+I) = A*(f(2)+I)%m;
> 
> -------------------------
> -------------------------
>   f(n)=A*(f(n-1)+I)%m;
> 
> 
> 
> 
> 
> 

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