代码提交时一直段错误,是爆栈了吗?看了好几遍,实在不知道哪错了!😫😔 #include <bits/stdc++.h> using namespace std; #define LL long long const int MAXN = 1e5 +50; const int MOD = 1e9 +3; int N; vector<int> child[MAXN]; int val[MAXN]; int maxSub(int root) { int ret = 0; for(int ch:child[root]) { ...