摘要: 题目[USACO17JAN]Promotion Counting P 从根节点dfs一遍,树状数组维护进入和出去时这个节点的贡献,一减就是答案 代码: #include <cstdio> #include <cstdlib> #include <cstring> #include <algorith 阅读全文
posted @ 2022-03-15 23:44 __honey 阅读(31) 评论(0) 推荐(0)