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

原来这题还有这么多方法啊 ,我一开始就是 贪心。。。。。

Posted by kevinew at 2006-08-15 17:33:44 on Problem 2969
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:
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