1 inline int read() 2 { 3 int w=0,s=1; 4 char ch=getchar(); 5 while(ch<'0' || ch>'9') 6 { 7 if(ch=='-') s=-1; 8 ch=getchar(); 9 } 10 while(ch>='0' && ch<='9') 11 { 12 w=w*10+ch-'0'; 13 ch=getchar(); 14 } 15 return s*w; 16 }View Code
标签:ch,int,while,读入,快速,模板,getchar From: https://www.cnblogs.com/Rakan-LoveJ/p/18104060