摘要: Description There are n kangaroos with pockets. Each kangaroo has a size (integer number). A kangaroo can go into another kangaroo's pocket if and onl 阅读全文
posted @ 2016-07-27 21:46 野小子& 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Description 有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。 有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之外的任务请求,请计算何时这个任务才能被执行。 机器总是按照工作表执行,当机器空闲时立即执行工作表之外 阅读全文
posted @ 2016-07-27 19:57 野小子& 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Description New Year is coming! Our big boss Wine93 will distribute some “Red Package”, just like Alipay and Wechat. Wine93 has m yuan, he decides to 阅读全文
posted @ 2016-07-27 17:41 野小子& 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of vari 阅读全文
posted @ 2016-07-27 14:28 野小子& 阅读(749) 评论(0) 推荐(0) 编辑
摘要: Description Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. 阅读全文
posted @ 2016-07-27 11:05 野小子& 阅读(144) 评论(0) 推荐(0) 编辑