HDU 2844 Coins 多重背包(二进制优化)

The input contains several test cases. The first line of each test case contains two integers n(1 ≤ n ≤ 100),m(m ≤ 100000).The second line contains 2n integers, denoting A1,A2,A3…An,C1,C2,C3…Cn (1 ≤ Ai ≤ 100000,1 ≤ Ci ≤ 1000). The last test case is followed by two zeros.

,因为有梦,所以勇敢出发,选择出发,便只顾风雨兼程。

HDU 2844 Coins 多重背包(二进制优化)

相关文章:

你感兴趣的文章:

标签云: