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

i 最后不一定变为0 !!!

Posted by 200593141 at 2008-01-06 19:25:42 on Problem 1147
In Reply To:构造完了next数组后,怎么输出的呢? Posted by:00204082 at 2003-06-03 22:06:01
Next 数组可生成的置换序列虽满足稳定性(生成两端升序序列)

但并不一定以0结束;

用一下下面的测试数据就知道了

5
1 1 0 1 0 

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