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 lilijun at 2006-09-05 20:01:44 on Problem 1026
In Reply To:怎能求循环阶数啊??我这个总是超时..........高手指点一二 Posted by:yellowflying at 2006-07-28 00:58:23
我想主要是因为某个位置在给定的次数内按照给定的顺序移动的过程中,出现了许多
周期性的情况,因此在判断最终位置时,要先求出他的循环周期,然后求出给定次数对周期的余数。即省掉那些重复性的多余 的判断。

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