摘要: 【记忆化路线】 Spirit of Cola. https://ac.nowcoder.com/acm/contest/110312/J 注意写法积累! (1)vector多维数组 //记最短路 vector dp(c[0] + 1, vector(c[1] + 1, vector<int>(c[2 阅读全文
posted @ 2025-05-18 19:04 White_ink 阅读(2) 评论(0) 推荐(0)
摘要: 【树上前缀和】 Compare Tree Weights 【树链剖分+树状数组维护顶点前缀和】 https://atcoder.jp/contests/abc406/tasks/abc406_f #include<bits/stdc++.h> using namespace std; #define 阅读全文
posted @ 2025-05-18 07:59 White_ink 阅读(17) 评论(0) 推荐(0)