正文
增加 14 行删除 9 行
12345678910111213141516171891 行未改动# 读入优化通过`getchar()`逐个字符读入。```//读入量>100000int getint(){char ch=' ';int x=0;while(c<'0'&&c>'9')ch=getchar();while(c<'0'&&c>'9'){x=x*10+c-'0';c=getchar();}return x;}```91 行未改动123456789101112131415161718192021222391 行未改动# 读入优化通过`getchar()`逐个字符读入。```//读入量>100000inline int input(){char ch=getchar();bool fu=0;int m=0;while(!isdigit(ch)){if(ch=='-')fu=1;ch=getchar();}while(isdigit(ch)){m=m*10+ch-'0';ch=getchar();}if(fu)return -m;return m;}```91 行未改动