正文
增加 2 行删除 2 行
37 行未改动38394041424344454616 行未改动6364656667686970713 行未改动37 行未改动return ;#endifcout << arg << ' ';dbg(args...);}int n, mx, l[N], c[N], f[N], g[N];int main() {// freopen("data.in", "r", stdin);// freopen("data.out", "w", stdout);16 行未改动}}}for (int j = 1; j <= mx; j++) g[j] = (g[j] + g[j - 1]) % mod;for (int j = 0; j <= mx; j++) f[j] = (ll)g[j] * (c[j] - i + 1) % mod, g[j] = 0;}for (int i = 0; i <= mx; i++) ans = (ans + f[i]) % mod;}cout << ans << '\n';3 行未改动37 行未改动38394041424344454616 行未改动6364656667686970713 行未改动37 行未改动return ;#endifcout << arg << ' ';dbg(args...);}int n, mx, l[N], c[N], f[N], g[N];int main() {// freopen("data.in", "r", stdin);// freopen("data.out", "w", stdout);16 行未改动}}}for (int j = 1; j <= mx; j++) g[j] = (g[j] + g[j - 1]) % mod;for (int j = 0; j <= mx; j++) f[j] = (ll)g[j] * (c[j] - i + 1) % mod, g[j] = 0;}for (int i = 0; i <= mx; i++) ans = (ans + f[i]) % mod;}cout << ans << '\n';3 行未改动