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

mod性质

Posted by treert at 2011-12-09 20:17:14 on Problem 2773
In Reply To:一个公式就解决了 Posted by:netbarrr at 2011-05-01 12:04:06
> 将小于m和m互素的数寸到数组prime中,len为prime的长度。直接输出
> ((k-1)/len)*m + prime[(k%len -1+len)%len]

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