HBC21195Kuangyeye and hamburgers题解 (kuangyeyeisadalaooftheacmschoolteamofhunan)

为你而来永不停止 自定义函数 106 0
想要成为编程高手?那就来试试全网最全C++题库,让您在练习中快速成长。
Kuangyeye is a dalao of the ACM school team of Hunan University.His favorite food are hamburgers. One day, Kuangyeye came to the KFC(or maybe McDonald) and saw n hamburgers on the counter.The weight o

Kuangyeye is a dalao of the ACM school team of Hunan University. His favorite food are hamburgers. One day, Kuangyeye came to the KFC(or maybe McDonald) and saw n hamburgers on the counter.The weight of the i-th hamburger was wi. Since he likes hamburgers very much, he would like to buy some hamburgers. Considering his weight or other factors, Kuangyeye only wanted to eat all the hamburgers from the a-th heaviest to the b-th. Since Kuangyeye is fickle, he had k plans before buying hamburgers. The i-th plan gives ai and bi. Please help Kuangyeye calculate the maximum weight of hamburgers he can eat among the k plans.

不断挑战自我,才能突破极限!全网最全C++题库,让您在编程道路上越走越远。

标签: HBC21195Kuangyeye and hamburgers题解