非负整数的快速输入输出
inline int read(){
int x=0;
char c=getchar();
while(c<'0'||c>'9')
c=getchar();
do{
x=(x<<3)+(x<<1)+c-'0';
printf("x=%d\n",x);
c=getchar();
}while(c>='0'&&c<='9');
return x;
}
inline void write(int x){
if(x>9){
write(x/10);
}
putchar(x%10+'0');
return;
}
原文地址:https://www.cnblogs.com/Yinku/p/10987283.html
时间: 2024-11-09 02:49:01