正文
增加 2 行删除 2 行
1234567891043 行未改动54555657585960616238 行未改动```cppconst int N = (1 << 18) + 5;const int M = 19;const int mod = 998244353;inline int norm(const int &x) { return x >= mod ? x - mod : x; }inline ll norm(const ll &x) { return x >= mod ? x - mod : x; }inline void add(int &x, const int &v) { ((x += v) >= mod) && (x -= mod); }inline void sub(int &x, const int &v) { ((x -= v) < 0) && (x += mod); }43 行未改动}}inline void getinv(int *g, int *f, int n) {REP(i, 0, n) g[i] = (i == 0);int v = power(f[0], mod - 2);REP(i, 0, n) {g[i] = 1ll * g[i] * v % mod;REP(j, i + 1, n) g[j] = (g[j] - 1ll * g[i] * f[j - i] % mod + mod) % mod;}38 行未改动1234567891043 行未改动54555657585960616238 行未改动```cppconst int N = (1 << 18) + 5;const int M = 19;const int mod = 998244353;inline int norm(const int &x) { return x >= mod ? x - mod : x; }inline ll norm(const ll &x) { return x >= mod ? x - mod : x; }inline void add(int &x, const int &v) { ((x += v) >= mod) && (x -= mod); }inline void sub(int &x, const int &v) { ((x -= v) < 0) && (x += mod); }43 行未改动}}inline void getinv(int *g, int *f, int n) {REP(i, 0, n) g[i] = (i == 0);int v = power(f[0], mod - 2);REP(i, 0, n) {g[i] = 1ll * g[i] * v % mod;REP(j, i + 1, n) g[j] = (g[j] - 1ll * g[i] * f[j - i] % mod + mod) % mod;}38 行未改动