徐向前父母:Bone Collector

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/01 07:21:16
我很想知道我同学资料里添的这个东西到底是什么意思 有没有高人帮忙解决一下

人骨拼图(Bone Collector)
--------------------------------------------------------------------------------

在纽约曼哈顿发生了一系列残忍的凶杀事件,街区笼罩在一片恐怖之中,警方面临巨大的破案压力。Lincoln Rhymes原是一名出色的法庭专家,纽约市屈指可数的犯罪专家。但不幸在一次执勤中受枪击而全身瘫痪,他所能运用的只有他那过
人的智慧。Amelia Donaghy是一名女警官,刚被调任文职。她的任务是帮助Rhymes尽快破案,她必须充当Rhymes的眼睛、耳朵。这两位警察必须通力合作,找出凶手故意遗留在犯罪现场的隐藏线索,在这个疯狂的杀手再次作案之前逮捕他。

(也叫《神秘拼图》)

Bone Collector是一个程序设计的题目
Problem Description(题目描述):
Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave …
The bone collector had a big bag with a volume of V ,and along his trip of collecting there are a lot of bones , obviously , different bone has different value and different volume, now given the each bone’s value along his trip , can you calculate out the maximum of the total value the bone collector can get ?
INPUT(输入):
The first line contain a integer T , the number of cases.
Followed by T cases , each case three lines , the first line contain two integer N , V, (N <= 1000 , V <= 1000 )representing the number of bones and the volume of his bag. And the second line contain N integers representing the value of each bone. The third line contain N integers representing the volume of each bone.
OUTPUT(输出):
One integer per line representing the maximum of the total value (this number will be less than 2^31).
SAMPLE INPUT(输入示例):
1
5 10
1 2 3 4 5
5 4 3 2 1
SAMPLE OUTPUT(输出示例):
14

如果你同学喜欢篮球,那这肯定就是指BC了,一个美国街头篮球明星,相当牛逼