标签:sum etc space back for namespace mem mes register
namespace my_std{
using namespace std;
#define Re register
#define rep(i,a,b) for(Re int i=(a);i<=(b);i++)
#define drep(i,a,b) for(Re int i=(a);i>=(b);i--)
#define repv(i,v) if(v.size())rep(i,0,v.size()-1)
#define drepv(i,v) if(v.size())drep(i,v.size()-1,0)
#define go(u) for(Re int i=head[(u)];i;i=e[i].nxt)
#define pf printf
#define writesp(x) write(x),putchar(‘ ‘),IO::check()
#define writeln(x) write(x),putchar(‘\n‘),IO::check()
#define mem(x,v) memset(x,v,sizeof(x))
#define pb push_back
#define ZSH return
#define AKIOI 0
typedef long long ll;
const int INF=0x7fffffff;
char buf[1<<22],out[1<<22],*p1=buf,*p2=buf;
int p3=-1,f=0;
inline void file(){
#ifdef ZSHAKIOI
freopen("1.in","r",stdin);
#endif
}
inline int getchar(){return (p1==p2)&&(p2=(p1=buf)+fread(buf,1,1<<21,stdin),p1==p2)?EOF:*p1++;}
inline void flush(){fwrite(Out,1,p3+1,stdout),p3=-1;}
inline void check(){if(p3>(1<<21))flush();}
inline void putchar(char a){Out[++p3]=a;check();}
inline void putline(string s){
int tmp=p3;
while(p3-tmp<s.size())putchar(s[p3-tmp]);
putchar(‘\n‘);
}
inline char gc(){
char c=getchar();
while(!c||c==‘\n‘||c==‘ ‘)c=getchar();
return c;
}
inline int read(){
int sum=0,f=0;char c=getchar();
while(!isdigit(c))f|=(c==‘-‘),c=getchar();
while(isdigit(c))sum=(sum<<1)+(sum<<3)+(c^48),c=getchar();
return f?-sum:sum;
}
void write(int k){
if(k<0)putchar(‘-‘),k=-k;
write(k/10);
putchar(k%10+48);
}
}
标签:sum etc space back for namespace mem mes register
原文地址:https://www.cnblogs.com/ZTC2019/p/13373223.html