Stay Hungry,Stay Foolish!

摘要: D - Erase Leaves https://atcoder.jp/contests/abc333/tasks/abc333_d 思路 把这个图看成一棵树, 1作为树根, 统计 1树根关联的 子节点作为根的子树的总节点数, 去除 子树中总节点数最大子的 子树, 其它子树的总节点 记做贡献, 最后 阅读全文
posted @ 2023-12-16 22:26 lightsong 阅读(36) 评论(0) 推荐(0) 编辑
摘要: C - Repunit Trio https://atcoder.jp/contests/abc333/tasks/abc333_c 思路 N=333时候, repunit最长12位, 三重遍历 repunit 做和记录到vector中 最后对vector进行排序,取n值。 Code https:/ 阅读全文
posted @ 2023-12-16 22:19 lightsong 阅读(31) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel