随笔分类 -  贪心

摘要:ACM (ACMers' Chatting Messenger) is a famous instant messaging software developed by Marjar Technology Company. To attract more users, Edward, the bos 阅读全文
posted @ 2017-04-22 20:38 Wally的博客 阅读(207) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1789 我的思路:先在输入过程中求出总被减分数sum,再对deadline由小到大进行排序,然后找出deadline的最大值--day,从day到1依次找出deadline大于等于当前day的最大被减分数--red 阅读全文
posted @ 2016-05-30 17:27 Wally的博客 阅读(151) 评论(0) 推荐(0)
摘要:Problem Description Here is a famous story in Chinese history."That was about 2300 years ago. General Tian Ji was a high official in the country Qi. H 阅读全文
posted @ 2016-04-07 21:19 Wally的博客 阅读(164) 评论(0) 推荐(0)
摘要:Problem Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floo 阅读全文
posted @ 2016-04-06 21:37 Wally的博客 阅读(148) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-04-06 20:55 Wally的博客 阅读(141) 评论(0) 推荐(0)
摘要:Description 黑龙江的五常大米全国闻名,每年到了秋天,农民们把自己家的大米到集市上去买,但由于五常地区还是一个比较落后的地方,还实行物物交换,即农民用大米换白面,可以用来蒸馒头啊!每个集市上大米换白面的比例并不相等,如何能用最少的大米换到最多的白面呢?(单位是斤) Description 阅读全文
posted @ 2016-04-03 16:18 Wally的博客 阅读(305) 评论(0) 推荐(0)
摘要:Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean 阅读全文
posted @ 2016-03-31 16:35 Wally的博客 阅读(147) 评论(0) 推荐(0)