贪心
LLL_yx
这个作者很懒,什么都没留下…
展开
-
codeforces792E Colored Ball(贪心加枚举)
There are n boxes with colored balls on the table. Colors are numbered from 1 to n. i-th box contains ai balls, all of which have color i. You have to write a program that will divide all balls into s原创 2017-07-10 21:37:44 · 340 阅读 · 0 评论 -
CodeForces - 734C Anton and Making Potions(二分+枚举)
Anton is playing a very interesting computer game, but now he is stuck at one of the levels. To pass to the next level he has to prepare n potions.Anton has a special kettle, that can prepare one原创 2017-08-12 14:44:05 · 359 阅读 · 0 评论