标题
增加 1 行删除 1 行
1C++ 模板1个人用 C++ 模板
正文
增加 23 行删除 6 行
1234567891011128 行未改动21222324252627282930313233343536373839404142空模板:```cpp line-numbers#include<bits/stdc++.h>#define LoveFurina ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)#define F(x, l, r) for(int x = l; x <= r; ++x)#define B(x, r, l) for(int x = r; x >= l; --x)#define ll long longusing namespace std;//const int N = ;8 行未改动}// 生命如同戏剧,你永远预料不到转折出现在哪一篇章。// 世间的奇遇之所以存在,就是为了给世人带来转机。```取模模板:```cpp line-numbersstruct Int {int val;Int(int x = 0) : val(x) {}inline Int operator + (const Int &rhs) const {return (1LL * val + rhs.val) % mod;}inline Int operator - (const Int &rhs) const {return (1LL * val - rhs.val + mod) % mod;}inline Int operator * (const Int &rhs) const {return 1LL * val * rhs.val % mod;}};```123456789101112131415168 行未改动2526272829303132333435363738394041424344454647484950515253545556575859### 空模板:```cpp line-numbers#include<bits/stdc++.h>#define LoveFurina ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)#define F(x, l, r) for(int x = l; x <= r; ++x)#define B(x, r, l) for(int x = r; x >= l; --x)#define pii pair<int, int>#define st first#define nd second#define ll long long#define ull unsigned long longusing namespace std;//const int N = ;8 行未改动}// 生命如同戏剧,你永远预料不到转折出现在哪一篇章。// 世间的奇遇之所以存在,就是为了给世人带来转机。```### 取模模板:```cpp line-numbersstruct Int {int val;Int(int x = 0) : val((x % mod + mod) % mod) {}inline Int operator + (const Int &rhs) const {return (1ll * val + rhs.val) % mod;}inline Int operator - (const Int &rhs) const {return (1ll * val - rhs.val + mod) % mod;}inline Int operator * (const Int &rhs) const {return 1ll * val * rhs.val % mod;}};```### 线段树宏定义```cpp line-numbers#define ls (o << 1)#define rs (o << 1 | 1)#define mid (l + r >> 1)#define fc t[o]#define lc t[ls]#define rc t[rs]```