摘要: [TOC] 题目链接 "AGC027 A Candy Distribution Again" 题解 贪心即可 代码 c++ include include include define gc getchar() define pc putchar inline int read() { int x 阅读全文
posted @ 2018-09-25 21:51 zzzzx 阅读(210) 评论(0) 推荐(0) 编辑
摘要: [TOC] 题目链接 "AGC027 B Garbage Collector" 题解 对于一组选取组的最优方案为,走到一点,然后顺着路径往回取点 设选取点坐标升序为{a,b,c,d} 那么消耗为$d+(d c) + 4 (d c) + 9 (c d) + 16 (b a) + a 25$ 化简后为$ 阅读全文
posted @ 2018-09-25 20:33 zzzzx 阅读(259) 评论(2) 推荐(0) 编辑