标签:int 优化 get char nbsp getchar return ret amp
int read(){
int x=0; char ch=getchar();
while (ch<‘0‘ || ch>‘9‘) ch=getchar();
while (ch>=‘0‘ && ch<=‘9‘){ x=x*10+ch-‘0‘; ch=getchar(); }
return x;
}
标签:int 优化 get char nbsp getchar return ret amp
原文地址:http://www.cnblogs.com/Dream-Runner/p/7348125.html