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

从0数到k那么应该是r = (r + k + 1) mod i

Posted by first at 2006-04-01 01:15:47 on Problem 2800
In Reply To:题目中这个算法对吗 ? Posted by:first at 2006-03-31 19:38:51
> r := 0;
> 	for i from 1 to n do
> 		r := (r + k) mod i;
> 	return r;
> 

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