![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
文章平均质量分 70
destiny546
这个作者很懒,什么都没留下…
展开
-
hdu 5777 贪心
题目:小白在玩一个游戏。桌子上有n张多米诺骨牌排成一列。它有k次机会,每次可以选一个还没有倒的骨牌,向左或者向右推倒。每个骨牌倒下的时候,若碰到了未倒下的骨牌,可以把它推倒。小白现在可以随意设置骨牌的高度,但是骨牌高度为整数,且至少为1,并且小白希望在能够推倒所有骨牌的前提下,使所有骨牌高度的和最小。输入描述第一行输入一个整数T(1≤T≤101\leq T \leq 101≤T原创 2016-07-31 08:26:28 · 379 阅读 · 0 评论 -
hdu 5802 Windows 10
题目:Windows 10Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionLong long ago, the原创 2016-08-04 17:06:45 · 460 阅读 · 0 评论 -
Codeforces Round #375 (Div. 2) C Polycarp at the Radio
C. Polycarp at the Radiotime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is a music editor at the radio stat原创 2016-10-19 10:59:27 · 265 阅读 · 0 评论