随笔分类 -  贪心算法

摘要:题目: The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk and lab 阅读全文
posted @ 2017-02-02 01:55 Robin! 阅读(165) 评论(0) 推荐(0)
摘要:题目: Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A <= B <= 阅读全文
posted @ 2017-02-01 21:23 Robin! 阅读(159) 评论(0) 推荐(0)
摘要:题目: The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms 阅读全文
posted @ 2017-01-08 14:53 Robin! 阅读(123) 评论(0) 推荐(0)
摘要:题目: 通过悬崖的yifenfei,又面临着幽谷的考验—— 幽谷周围瘴气弥漫,静的可怕,隐约可见地上堆满了骷髅。由于此处长年不见天日,导致空气中布满了毒素,一旦吸入体内,便会全身溃烂而死。 幸好yifenfei早有防备,提前备好了解药材料(各种浓度的万能药水)。现在只需按照配置成不同比例的浓度。 现 阅读全文
posted @ 2017-01-07 17:29 Robin! 阅读(132) 评论(0) 推荐(0)