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了N久才AC,

Posted by whl910 at 2016-08-25 21:26:42 on Problem 1010
In Reply To:WA了N久才AC, Posted by:yygy at 2012-10-26 10:20:39
> 刚开始用DP,状态交上去一直WA,后来发现,DP状态表示不完整。
> 最后想想,最多选四张,直接按种类来枚举,
> 先枚举四种。四重循环,
> 找不到就选三个,三重循环,
> 找不到就二重
> 再就,一重
> 最后就是无解。暴力搞定。
> 题目说票种数最多25,四次方的复杂度是可以接受的。
qqq

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