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 |
解法~~~.~令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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator