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 |
从0数到k那么应该是r = (r + k + 1) mod iIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator