随笔分类 -  BestCoder

摘要:Revenge of Nim IIProblem DescriptionNim is a mathematical game of strategy in which two players take turns removing objects from distinct heaps. On ea... 阅读全文
posted @ 2014-11-03 23:32 Enumz 阅读(235) 评论(0) 推荐(0)
摘要:Revenge of LIS IIProblem DescriptionIn computer science, the longest increasing subsequence problem is to find a subsequence of a given sequence in wh... 阅读全文
posted @ 2014-11-02 11:30 Enumz 阅读(189) 评论(0) 推荐(0)
摘要:Revenge of Segment TreeProblem DescriptionIn computer science, a segment tree is a tree data structure for storing intervals, or segments. It allows q... 阅读全文
posted @ 2014-11-02 11:22 Enumz 阅读(183) 评论(0) 推荐(0)
摘要:BestCoder SequenceProblem DescriptionMr Potato is a coder.Mr Potato is the BestCoder.One night, an amazing sequence appeared in his dream. Length of t... 阅读全文
posted @ 2014-08-04 10:44 Enumz 阅读(531) 评论(6) 推荐(2)
摘要:Task scheduleDescription有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之外的任务请求,请计算何时这个任务才能被执行。机器总是按照工作表执行,当机器空闲... 阅读全文
posted @ 2014-08-04 10:29 Enumz 阅读(233) 评论(0) 推荐(1)
摘要:逃生Description糟糕的事情发生啦,现在大家都忙着逃命。但是逃命的通道很窄,大家只能排成一行。现在有n个人,从1标号到n。同时有一些奇怪的约束条件,每个都形如:a必须在b之前。同时,社会是不平等的,这些人有的穷有的富。1号最富,2号第二富,以此类推。有钱人就贿赂负责人,所以他们有一些好处。负... 阅读全文
posted @ 2014-07-27 17:54 Enumz 阅读(262) 评论(0) 推荐(0)