快读快写 2021.5.23
作者:互联网
#include<bits/stdc++.h>
using namespace std;
inline 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<<1)+(x<<3)+(ch^48); ch=getchar();}
return x*f;
}
void write(int x)
{
if(x<0) putchar('-'),x=-x;
if(x>9) write(x/10);
putchar(x%10+'0');
}
int main()
{
int n;
n=read();
write(n);
return 0;
}
标签:10,ch,2021.5,23,int,write,read,快读,getchar 来源: https://www.cnblogs.com/hzfeichang/p/14800848.html