个人介绍
增加 15 行删除 27 行
38 行未改动394041424344454647484950515253545556575859606162636465666768697071727374757677172 行未改动全部展开38 行未改动::::::::info[FastInput]```cppstruct Input {template < typename T > inline Input operator>>(T &x) {int c = getchar(), f = 0; x = 0;while (~c && (c < 48 || c > 57)) { f |= c == '-', c = getchar(); }while (~c && (c > 47 && c < 58)) { x = (x << 1) + (x << 3) + (c & 15), c = getchar(); }return f ? x = -x, *this : *this;}} cin;```::::::::info[Mint]```cppstruct mint {long long x;mint(long long x = 0) : x((x % MOD + MOD) % MOD) {}mint &operator+=(const mint a) { return ((x += a.x) >= MOD) ? x -= MOD, *this : *this; }mint &operator-=(const mint a) { return ((x += MOD - a.x) >= MOD) ? x -= MOD, *this : *this; }mint &operator*=(const mint a) { return (x *= a.x) %= MOD, *this; }mint operator+(const mint a) const { mint res(*this); return res += a; }mint operator-(const mint a) const { mint res(*this); return res -= a; }mint operator*(const mint a) const { mint res(*this); return res *= a; }mint pow(long long b) const { mint res(1), a(*this); while (b) { if (b & 1) { res *= a; } a *= a, b >>= 1; } return res; }mint inv() const { return pow(MOD - 2); }mint &operator/=(const mint a) { return (*this) *= a.inv(); }mint operator/(const mint a) const { mint res(*this); return res /= a; }friend std::ostream &operator<<(std::ostream &os, const mint &a) { os << a.x; return os; }};```::::::::info[Clang Format]```# 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProtoLanguage: Cpp172 行未改动全部展开38 行未改动394041424344454647484950515253545556575859606162636465172 行未改动全部展开38 行未改动::::::::info[FastInput]```cppvoid read() {}template < typename A, typename... B >inline void read(A &x, B &...y) {int c = getchar(), f = 0;while (~c && (c < 48 || c > 57)) {f |= c == '-';c = getchar();}x = 0;while (~c && (c > 47 && c < 58)) {x = (x << 1) + (x << 3) + (c & 15);c = getchar();}x = f ? -x : x;read(y...);}```::::::::info[Clang Format]```# 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProtoLanguage: Cpp172 行未改动全部展开