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 |
原来这题还有这么多方法啊 ,我一开始就是 贪心。。。。。In Reply To:Re:bfs? Posted by:gemenhao at 2006-08-15 09:00:26 我是这么来的: 从小到大排序后, 看最小的是否为0,如果为0,则在其余的数中找第一个 余数为 sum%3的 剔除即可 若不为 0,则找 5和放到第一位,其余排好序, 则在其余的数中找第一个 余数 为 sum%3的 剔除即可 若没有5则 impossible 哪位大牛能否发个 DP 到我mail看看阿,谢谢~~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator