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:对于这组输入应该输出1

Posted by zxcvbnm_1 at 2016-08-16 23:11:19 on Problem 2369
In Reply To:对于这组输入应该输出1 Posted by:Sky_Line at 2010-09-28 18:38:43
> 5
> 1 2 3 4 5
> 很明显输出应该是0,不需要继续置换了,但是需要输出1才能过~


4 1 5 2 3
2 4 3 1 5
1 2 5 4 3
4 1 3 2 5
2 4 5 1 3
1 2 3 4 5
样例中只需要变5次,但输出包含了 1 2 3 4 5 ,所以输出6
对于
5
1 2 3 4 5
应该是输出1
也就是 1 2 3 4 5 这组

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