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 ACM_Hohai at 2008-11-01 21:33:37 on Problem 1282
In Reply To:求救,本想偷懒,现在不断完善,真不知道哪里有问题了,大牛们,帮忙瞄下 Posted by:ACM_Hohai at 2008-11-01 21:31:50
期间也用到了判断是否有周期,用了记录数组,模拟的时候,如若出现了重复情况,但是尚且没回到初始位置,就认为这个祭祀是不循环的。
之间也记录了是否有祭祀一直原地不动的情况。

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