版本比较
缺省源
正文
增加 24 行删除 39 行
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162```cpp#include<bits/stdc++.h>using namespace std;// #define int long longnamespace florr{#ifdef __linux__#define gc getchar_unlocked#define pc putchar_unlocked#else#define gc _getchar_nolock#define pc _putchar_nolock#endif#define meow ios_base::sync_with_stdio(false);cin.tie(0)#define rep(i,l,r,k) for(int i=l;i<=r;i+=k)#define rrep(i,r,l,k) for(int i=r;i>=l;i-=k)#define loop(i,st,ed,nxt) for(int i=st;i!=ed;i=nxt)#define file(s) freopen(s".in","r",stdin),freopen(s".out","w",stdout);const int inf=0x3f3f3f3f;const long long infll=0x3f3f3f3f3f3f3f3fll;const __int128 infi128=(__int128(1)<<126);mt19937 __rnd(time(0));template<typename T=int>T rd(){T x=0;bool w=0;char ch=gc();for(;!isdigit(ch);ch=gc())w|=(ch=='-');for(;isdigit(ch);ch=gc())x=(x<<3)+(x<<1)+(ch^48);return w?-x:x;}template<typename T=int>void wt(T x){if(x<0)pc('-'),x=-x;if(x>9)wt(x/10);pc(x%10+48);}__int128 abs(__int128 x){return x<0?-x:x;}int rnd(int l,int r){return abs((int)(__rnd()))%(r-l+1)+l;}template<typename T,int N>struct Fenwick{T tr[N+5];void add(int x,int v){rep(i,x,N,i&-i)tr[i]+=v;}int qry(int x){return x<=0?0:tr[x]+qry(x-(x&-x));}}}//namespace florrusing namespace florr;void solve(){}signed main(){// file("");// meow;signed T=1;//cin>>T;//T=rd<signed>();rep(i,1,T,1)solve();}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647```cpp#include<bits/stdc++.h>using namespace std;#define int long longnamespace florr{#define meow ios_base::sync_with_stdio(false);cin.tie(0)#define FOR(i,l,r) for(int i=l;i<=r;++i)#define ROF(i,r,l) for(int i=r;i>=l;++i)#define FORK(i,l,r,k) for(int i=l;i<=r;i+=k)#define ROFK(i,r,l,k) for(int i=r;i>=l;i-=k)#define loop(i,st,ed,nxt) for(int i=st;i!=ed;i=nxt)#define file(s) freopen(s".in","r",stdin),freopen(s".out","w",stdout);const int inf=0x3f3f3f3f;const long long infll=0x3f3f3f3f3f3f3f3fll;const __int128 infi128=(__int128(1)<<126);__int128 abs(__int128 x){return x<0?-x:x;}}//namespace florrusing namespace florr;void init(){}void solve(){}signed main(){// file("");meow;signed T=1;//cin>>T;init();FOR(i,1,T)solve();}/*1.MLE?2.array size enough?3.long long?4.overflow long long?5.multiple task cleaned?6.freopen?7.TLE?*/```