正文
增加 2 行删除 2 行
40 行未改动41424344454647484914 行未改动64656667686970717249 行未改动40 行未改动for (; !isdigit(c); c = getchar()) f ^= (c == '-');for (; isdigit(c); c = getchar()) s = s * 10 + (c ^ 48);return f ? s : -s;}template<typename T>void write(T x, char end = '\n'){if (x < 0) x = -x, putchar('-');static int d[100], cur = 0;14 行未改动{int res = 1;for (; y; y >>= 1, x = (LL)x * x % MOD)if (y & 1) res = (LL)res * x % MOD;return res;}const int MAXN = 3005;int n, siz[MAXN];int f[MAXN][MAXN], g[MAXN][MAXN];49 行未改动40 行未改动41424344454647484914 行未改动64656667686970717249 行未改动40 行未改动for (; !isdigit(c); c = getchar()) f ^= (c == '-');for (; isdigit(c); c = getchar()) s = s * 10 + (c ^ 48);return f ? s : -s;}template<typename T>void write(T x, char end = '\n'){if (x < 0) x = -x, putchar('-');static int d[100], cur = 0;14 行未改动{int res = 1;for (; y; y >>= 1, x = (LL)x * x % MOD)if (y & 1) res = (LL)res * x % MOD;return res;}const int MAXN = 3005;int n, siz[MAXN];int f[MAXN][MAXN], g[MAXN][MAXN];49 行未改动