c++贪心
文章平均质量分 85
cvb00052
这个作者很懒,什么都没留下…
展开
-
hdu 2037 今年暑假不ac(简单贪心)
http://acm.hdu.edu.cn/showproblem.php?pid=2037 先对结束时间进行排序,然后用开始时间和上一个节目的结束时间来比较。 要是对开始时间进行比较,用结束时间来比较就不好了,因为不知道每个节目的长度,只知道开始时间比较难操作。确实我现在水平也打不出来。 #include using namespace std; int main(转载 2015-11-19 19:43:03 · 194 阅读 · 0 评论 -
hdu 1050 acmsteps moving tables
Moving Tables Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12304 Accepted Submission(s): 4226 Problem Description The famous转载 2015-11-19 19:38:20 · 239 阅读 · 0 评论 -
hdu 1051 wooden sticks
Wooden Sticks Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in o原创 2015-11-21 20:05:19 · 268 阅读 · 0 评论