看一下你的快读写错没有。写成
int read(){ int x=0; char ch=getchar(); while(ch>='0'&&ch<='9')x=x*10+ch-48,ch=getchar(); return x; }
可以过全部原数据,完全绷不住。