2014年11月8日
摘要: 打败万恶的ghost以后,将军准备回寝室告诉大伙儿这个消息,没想到杯具又发生了…你知道有种鬼叫“路鬼”吗?让人莫名其妙的迷路,将军就被这种鬼上身了。将军本来要上楼的,但是因为鬼上身,他要不就上一层楼,要不就下一层楼,这个是随机的,他不能控制自己啦!假设将军住在第M楼,刚开始将军在K楼,因为体力原因,... 阅读全文
posted @ 2014-11-08 13:08 王润文ACM 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Description输入数据有多行,包括放入的物品重量为s,物品的件数n,以及每件物品的重量(输入数据均为正整数)多组测试数据。Input对于每个测试实例,若满足条件则输出“YES”,若不满足则输出“NO“Output20 51 3 5 7 9Sample InputYES解体思路:贪心不行,,直... 阅读全文
posted @ 2014-11-08 13:04 王润文ACM 阅读(301) 评论(0) 推荐(0) 编辑
摘要: DescriptionBackgroundThere are a lot of monkeys in a mountain. Every one wants to be the monkey king. They keep arguing with each other about that for... 阅读全文
posted @ 2014-11-08 13:01 王润文ACM 阅读(291) 评论(0) 推荐(0) 编辑
摘要: DescriptionAdvanced Cargo Movement, Ltd. is successfully expanding. In order to meet new demands on truck maintenance, the management of the company d... 阅读全文
posted @ 2014-11-08 12:58 王润文ACM 阅读(253) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in... 阅读全文
posted @ 2014-11-08 12:55 王润文ACM 阅读(236) 评论(0) 推荐(0) 编辑