#Lutece1706. 澪壹背包
澪壹背包
Migrated from Lutece 1706 澪壹背包
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
咸鱼钟有件物品,还有一个体积的 绿色 背包
第件物品,有的体积,与的价值
你可以选择一些物品放入背包
请问背包内物品最大的价值可能是多少?
Input
多组数据,不超过组
每一组数据以两个整数,开始
接下来为行,每一行两个整数,代表第个物品的体积与价值
保证不大于,其他所有数为随机生成并且不大于
Output
对每一组数据,输出一个整数,表示背包内物品的最大可能的价值
Samples
4 20
2 56546
19 351
7 2563
18 23212
79758
Note
人呀,就是不可预料,自己的代码能跑多快
Resources
2017 UESTC Training for Search Algorithm & String