快读
作者:互联网
妈妈再也不用担心我不会写快读啦(bushi
int read() {
int x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-') f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getchar();
}
return x * f;
}
话说这篇好氵啊:(
标签:写快,ch,int,char,while,快读,getchar 来源: https://www.cnblogs.com/zahng/p/15137945.html