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

Re:总结三点

Posted by 201501060326 at 2016-01-22 19:34:46 on Problem 1012
In Reply To:总结三点 Posted by:redatom at 2009-11-03 16:39:26
> 1.要kill的人的位置公式p=(p+m-1)%rest+1
> 
> 2.kill的位置<k就break,此时剩下的人rest等于k就成功
> 
> 3.m不要递增,m是k+1的整数倍或者k+1的整数倍加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