版本比较
C++缺省源
正文
增加 13 行删除 13 行
3 行未改动456789891011111213141516171718192021222324252425262728295 行未改动35363738393940414243444545464747484849505152515253545555565758592 行未改动3 行未改动template <typename T>inline T read(){ T x = 0, f = 1; char ch = getchar(); while(ch < '0' || ch > '9'){ if(ch == '-') f = -1; ch = getchar();} while(ch >= '0' && ch <= '9'){ x = x * 10 + (ch - '0'); ch = getchar();} while(ch < '0' || ch > '9'){if(ch == '-') f = -1; ch = getchar();} while(ch >= '0' && ch <= '9'){x = x * 10 + (ch - '0'); ch = getchar();} return x * f;} // int a = read<int>();}template <typename T>inline T write(T x){ if(x < 0){ putchar('-'); x = -x;} if(x > 9) write(x / 10); putchar(x % 10 + '0');}} // int a = read<int>(); write<int>(a);using ll = long long;using ull = unsigned long long;using pii = pair<int, int>;using vi = vector<int>;using vvi = vector<vi>;using vii = vector<pii>;const int INF = 1e9;const int MOD = 1e9 + 7;const int INF = 1e9; // 记得改const int MOD = 1e9 + 7; // 记得改#define sz(x) ((int)(x).size())#define all(x) (x).begin(), (x).end()#define rall(x) (x).rbegin(), (x).rend()#define pb push_back5 行未改动#define endl '\n'#define rep(i, a, b) for(int i = (a); i < (b); ++ i)#define per(i, a, b) for(int i = (b) - 1; i >= (a); -- i)#define each(x, a) for(auto &x : a)template <typename T> T ftpow(T a, ll b, T mod){template <typename T>T ftpow(T a, T b, T mod){ T res = 1; for(; b; b >>= 1, a = a * a % mod){ if(b & 1) res = res * a % mod; } return res;}} // x = ftpow<int>(a, b, mod);void ftit(){ ios::sync_with_stdio(false); cin.tie(nullptr); cin.tie(0) -> sync_with_stdio(0);}void fp(){ freopen("c.in","r",stdin); freopen("c.out","w",stdout); freopen("data.in","r",stdin); freopen("data.out","w",stdout);}void solve(){ ; ; // 请输入文本}int main(){ solve(); return 0;2 行未改动