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

以 与 1到m的与m互素的数的个数为一个周期 记录互素的数为j 则k/j*m + a[k%j-1] 即为答案

Posted by yuzhihao at 2019-08-21 09:36:06 on Problem 2773
k%j!=0  则k/j*m  +a[k%j-1]
k%j==0  则(k/j-1)*m  +a[j-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