摘要: Description Description Input Output Input Input Output Output Sample Input 5 9 20 15 6 10 Sample Output 4 Sample Input 5 9 20 15 6 10 Sample Input 5 阅读全文
posted @ 2018-08-09 20:18 BEYang_Z 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Description Description Input Output Input Input Output Output Sample Input sample1: 4 2 10 5 1 1 10 sample2: 1000 97 96998351 41 1668 505 2333 Sample 阅读全文
posted @ 2018-08-09 19:56 BEYang_Z 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Description K妹的胡椒粉大卖,这辣味让食客们感到刺激,许多餐馆也买这位K妹的账。有N家餐馆,有N-1条道路,这N家餐馆能相互到达。K妹从1号餐馆开始。每一个单位时间,K妹可以在所在餐馆卖完尽量多的胡椒粉,或者移动到有道路直接相连的隔壁餐馆。第i家餐馆最多需要A[i]瓶胡椒粉。K妹有M个单 阅读全文
posted @ 2018-08-09 19:46 BEYang_Z 阅读(213) 评论(0) 推荐(0) 编辑