正文
增加 1 行删除 1 行
82 行未改动83848586878889909145 行未改动82 行未改动ll g[N];for (int i = 0;i <= sto;++i) g[i] = f[i];for (auto now : tree[p].vec) {for (int j = sto;j >= now.v;--j) {g[j] = max(g[j],g[j - now.v] + now.w);}}if (tree[p].l == tree[p].r) {ll ans = 0;45 行未改动82 行未改动83848586878889909145 行未改动82 行未改动ll g[N];for (int i = 0;i <= sto;++i) g[i] = f[i];for (auto now : tree[p].vec) {for (int j = sto;j >= now.v;--j) {g[j] = max(g[j],g[j - now.v] + now.w);}}if (tree[p].l == tree[p].r) {ll ans = 0;45 行未改动