namespace FastIO{
#ifdef ONLINE_JUDGE
const int maxn=1<<20;
char _in[1<<20],_out[1<<20],*_p1=_in,*_p2=_in,*_p3=_out;
#define getchar() (_p1==_p2&&(_p2=(_p1=_in)+fread(_in,1,maxn,stdin),_p1==_p2)?EOF:*_p1++)
#define flush() (fwrite(_out,1,_p3-_out,stdout))
#define putchar(x) (_p3==_out+maxn&&(flush(),_p3=_out),*_p3++=(x))
class Flush{public:~Flush(){flush();}}_;
#endif
class FastInput{
public:
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-48;ch=getchar();}
return x*f;
}
inline char read(char &x){do{x=getchar();}while(isspace(x));return x;}
inline void read(char *x){static char ch;read(ch);do{*(x++)=ch;}while(!isspace(ch=getchar())&&~ch);}
inline void read(string &x){static char ch;read(ch),x.clear();do{x+=ch;}while(!isspace(ch=getchar())&&~ch);}
template<typename T>FastInput &operator>>(T &x){x=read<T>();return *this;}
};
class FastOut {
public:
template<typename T>
inline void write(T x){
if(x<0){putchar('-'),write<T>(0-x);return;}
static T sta[300];
int top=0;
do{sta[top++]=x%10,x/=10;}while(x);
while(top)putchar(sta[--top]+48);
}
inline char write(const char &x){return putchar(x);}
template<typename T>inline void write(T *x){while(*x)putchar(*(x++));}
inline void write(const string &x){for(int i=0,len=x.length();i<len;++i)putchar(x[i]);}
template<typename T>FastOut &operator<<(T x){write(x);return *this;}
};
}
FastIO::FastInput qin;
FastIO::FastOut qout;剪贴板
剪贴板 mkg1mga7
剪贴板信息
剪贴板信息
- 收录
- 更新