个人介绍
增加 21 行删除 0 行
17 行未改动181920212223242523 行未改动4950515253545556172 行未改动全部展开17 行未改动```cpp#include <iostream>namespace Qwarth {void main() {}} // namespace Qwarthint main() {23 行未改动} cin;```::::::::info[Clang Format]```# 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProtoLanguage: Cpp172 行未改动全部展开17 行未改动18192021222324252623 行未改动50515253545556575859606162636465666768697071727374757677172 行未改动全部展开17 行未改动```cpp#include <iostream>namespace Qwarth {void main() {}} // namespace Qwarthint main() {23 行未改动} 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 行未改动全部展开