摘要: Description Farmer John went to cut some wood and left N (2 <= N <= 100,000) cows eating the grass, as usual. When he returned, he found to his horror 阅读全文
posted @ 2017-10-08 14:32 12fs 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description 在一款电脑游戏中,你需要打败n只怪物(从1到n编号)。为了打败第i只怪物,你需要消耗d[i]点生命值,但怪物死后会掉落血药,使你恢复a[i]点生命值。任何时候你的生命值都不能降到0(或0以下)。请问是否存在一种打怪顺序,使得你可以打完这n只怪物而不死掉 在一款电脑游戏中,你需 阅读全文
posted @ 2017-10-08 13:52 12fs 阅读(127) 评论(0) 推荐(0) 编辑