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:WA的看几组数据,我开始排序加贪心做得WA了,后来用DFS+强剪枝提交几次WA了,但后来找到几组数据,修改后0msAC~本人菜鸟,多多交流

Posted by shjj3 at 2012-01-14 14:48:15 on Problem 1011
In Reply To:WA的看几组数据,我开始排序加贪心做得WA了,后来用DFS+强剪枝提交几次WA了,但后来找到几组数据,修改后0msAC~本人菜鸟,多多交流 Posted by:loganberry at 2011-02-11 11:38:11
> Input:
> 12
> 1 1 2 2 2 3 3 3 3 3 3 4
> 
> 27
> 15 3 2 4 11 1 8 8 8 15 3 2 4 11 1 8 8 8 15 3 2 4 11 1 8 8 8
> 
> 9
> 15 4 3 1 2 8 11 8 8
> 
> 45
> 15 3 2 11 4 1 8 8 8 15 3 2 11 4 1 8 8 8 15 3 2 11 4 1 8 8 8 15 3 2 11 4 1 8 8 8
> 15 3 2 11 4 1 8 8 8
> Output:
> 6
> 20
> 20
> 20

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