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

给组测试数据

Posted by sheeper at 2012-12-09 13:29:35 on Problem 3436
当你重新拾起放下多年的题目,仍然困惑不解的话,我希望这个能够帮助你
3 11
10 2 2 2 0 0 1
20 2 2 2 0 1 1
30 2 2 2 0 0 1
40 2 2 2 0 1 1
50 2 2 2 0 0 1
1000 2 2 1 1 0 0
50 1 2 2 1 1 1
40 1 2 0 1 1 1
30 1 0 2 1 1 1
20 1 0 0 1 1 1
10 1 2 2 1 1 1

ans:
150 10
1 6 10
2 6 20
3 6 30
4 6 40
5 6 50
6 7 50
6 8 40
6 9 30
6 10 20
6 11 10

输出的顺序不一定是上述顺序

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