题目链接:http://codeforces.com/contest/436/problem/A 题目意思:给出 n 颗只有两种类型:fruit 和 caramel的candies,这些candies是挂在屋子上的,对于第 i 颗candy,它离地面为 hi 厘米,质量为 mi;有只叫Om Nom的怪兽想尽可能地把这些candy吃光,它初始的时候只能跳 x 的高度,如果有某颗或者一些candy离地面的...
He also is the hero of today's problem. One day, Om Nom visited his friend Evan. Evan hasncandies of two types (fruit drops and caramel drops), thei-th candy hangs at the height ofhicentimeters above the floor of the house, its mass ismi. Om Nom wants to eat as many candies as...
thei-th candy hangs at the height ofhicentimeters above the floor of the house, its mass ismi. Om Nom wants to eat as many candies as possible. At the beginning Om Nom can make at mostxcentimeter high jumps. When Om Nom eats a candy of massy, he gets stronger...