其他模板
对拍
:again
duipai > in.txt
a < in.txt > out.txt
b < in.txt > std.txt
fc out.txt std.txt
if not errorlevel 1 goto again
pause
输入输出优化 upd 20181027
void read(int &x){
char c=getchar();x=0;int f=1;
while(!isdigit(c)) f&=(c!='-'),c=getchar();
while(isdigit(c)) x=(x<<3)+(x<<1)+(c^48),c=getchar();
x=f?x:-x;
}int wt[50];
inline void output(int x){
if(!x) {putchar(48); return ;}
if(x<0) putchar('-'),x=-x; int l=0;
while(x) wt[++l]=x%10,x/=10;
while(l) putchar(wt[l--]+48);
}