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.

,喜欢真实的人,要做真实的人,所以从来不会想要刻意模仿任何人。

Coins (多重背包,较好的题)

相关文章:

你感兴趣的文章:

标签云: