https://ac.nowcoder.com/acm/contest/58568/J 随机数据 , 区间覆盖 , 区间X次方和 很明显,珂朵莉 用DFS序把子树转成区间就好了 #include <bits/stdc++.h> #define endl "\n" #define ls p << 1 #define rs p << 1 | 1 #define int long long #define pb push_back #define mem(a, b) memset(a, b, sizeof(a)) #define For(i, a, b) for ...