Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:WA了N久才AC,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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator