快读
作者:互联网
int read() { int res = 0; char c = getchar(); while(!isdigit(c)) c = getchar(); while(isdigit(c)) res = (res << 1) + (res << 3) + c - 48, c = getchar(); return res; } void write(int x) { if(x / 10) write(x / 10); putchar(x % 10 + '0'); }
标签:int,res,char,isdigit,while,快读,getchar 来源: https://www.cnblogs.com/aacm/p/15196380.html