摘要: 面对一个求某值的最大值或最小值的题目,若: 可以确定该值的上下限,判断某值是否可行的代价可以接受,并且在该值的上下限内以所求解为界将所有值分为可行和不可行两部分, 则可以使用对上下限内的值二分查找的方法获取答案。 阅读全文
posted @ 2017-01-22 20:24 DGSX 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Chun-Soo is playing a dice stacking game. Six faces of a die are squares of the same size; each face of a die has a number from 1 to 6. But, they are 阅读全文
posted @ 2017-01-22 20:18 DGSX 阅读(169) 评论(0) 推荐(0) 编辑
摘要: A software developing company has been assigned two programming projects. As both projects are within the same contract, both must be handed in at the 阅读全文
posted @ 2017-01-22 20:10 DGSX 阅读(224) 评论(0) 推荐(0) 编辑