hdu 3535 AreYouBusy 多重背包~~二进制优化

There are several test cases, each test case begins with two integers n and T (0<=n,T<=100) , n sets of jobs for you to choose and T minutes for her to do them. Follows are n sets of description, each of which starts with two integers m and s (0<m<=100), there are m jobs in this set , and the set type is s, (0 stands for the sets that should choose at least 1 job to do, 1 for the sets that should choose at most 1 , and 2 for the one you can choose freely).then m pairs of integers ci,gi follows (0<=ci,gi<=100), means the ith job cost ci minutes to finish and gi points of happiness can be gained by finishing it. One job can be done only once.

,他们的快乐像贪玩的小孩,游荡到天光却还不肯回来。

hdu 3535 AreYouBusy 多重背包~~二进制优化

相关文章:

你感兴趣的文章:

标签云: