随笔分类 -  贪心

摘要:Chiaki has an array of n positive integers. You are told some facts about the array: for every two elements ai and aj in the subarray al..r (l≤i<j≤r), 阅读全文
posted @ 2018-07-24 21:04 TTTCoder 阅读(207) 评论(0) 推荐(0)
摘要:Crossing River A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle 阅读全文
posted @ 2017-10-29 21:10 TTTCoder 阅读(287) 评论(0) 推荐(0)