今天机考,然后因为快读快写GG了……
然后呢,就写写学习笔记吧……
- 快读:
template<typename T>void qin(T &x)
{
x=0;
char ch;bool f=0;
ch=getchar();
while(!isdigit(ch)&&ch!='-') ch=getchar();
if(ch=='-') ch=getchar(),f=1;
while(isdigit(ch)) x=x*10+ch-'0',ch=getchar();
if(f==1) x=-x;
}
- 快写:
void qout(int x)
{
if(x<0) putchar('-'),x=-x;
if(x>9) qout(x/10);
putchar(x%10+'0');
}