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:用背包可以做吗?

Posted by ty12 at 2009-11-21 11:36:42 on Problem 1564
In Reply To:用背包可以做吗? Posted by:guoxiang at 2009-08-26 16:26:07
可以吧。。。用二进制记录选取的数,然后通过‘|’运算添加,最后用&判断,,,只不过要排一下序就是了。。。
偷懒写了个枚举。。呵呵呵

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