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

呵呵,这么搞,我是排序后随机乱找两个交换,直到ok

Posted by frkstyc at 2005-06-29 22:29:52 on Problem 2454
In Reply To:我排一次序,然后做个循环对k+1到3k的random_shuffle,直到满足条件就行了 Posted by:sunmoonstar_love at 2005-06-29 22:28:14


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