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

贪心是错的吧?贪心AC的试试这些数据

Posted by Snow_storm at 2011-06-19 13:55:51 on Problem 2699
input:
39
3 3 3 4 4 4 5 5 7 7
3 3 3 4 4 4 5 6 6 7
3 3 3 4 4 4 6 6 6 6
3 3 3 4 4 5 5 5 5 8
3 3 3 4 4 5 5 5 6 7
3 3 3 4 4 5 5 6 6 6
3 3 3 4 5 5 5 5 5 7
3 3 3 4 5 5 5 5 6 6
3 3 3 5 5 5 5 5 5 6
3 3 4 4 4 4 4 4 6 9
3 3 4 4 4 4 4 4 7 8
3 3 4 4 4 4 4 5 5 9
3 3 4 4 4 4 4 5 6 8
3 3 4 4 4 4 4 5 7 7
3 3 4 4 4 4 4 6 6 7
3 3 4 4 4 4 5 5 5 8
3 3 4 4 4 4 5 5 6 7
3 3 4 4 4 4 5 6 6 6
3 3 4 4 4 5 5 5 5 7
3 3 4 4 4 5 5 5 6 6
3 3 4 4 5 5 5 5 5 6
3 3 4 5 5 5 5 5 5 5
3 4 4 4 4 4 4 4 5 9
3 4 4 4 4 4 4 4 6 8
3 4 4 4 4 4 4 4 7 7
3 4 4 4 4 4 4 5 5 8
3 4 4 4 4 4 4 5 6 7
3 4 4 4 4 4 4 6 6 6
3 4 4 4 4 4 5 5 5 7
3 4 4 4 4 4 5 5 6 6
3 4 4 4 4 5 5 5 5 6
3 4 4 4 5 5 5 5 5 5
4 4 4 4 4 4 4 4 4 9
4 4 4 4 4 4 4 4 5 8
4 4 4 4 4 4 4 4 6 7
4 4 4 4 4 4 4 5 5 7
4 4 4 4 4 4 4 5 6 6
4 4 4 4 4 4 5 5 5 6
4 4 4 4 4 5 5 5 5 5


output:
3
3
5
2
3
5
3
4
4
1
2
1
2
3
3
2
3
5
3
4
4
7
1
2
3
2
3
5
3
4
4
6
1
2
3
3
4
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