#include <cstdio>
#include <cctype>
using namespace std;
//#define getchar() (sp == ep && (ep = (sp = ibuf) + fread(ibuf,1,mm,stdin),sp == ep) ? EOF : *sp++)
//#define putchar(x) ((op-obuf<mm) ? (*op++=x) : (fwrite(obuf,op-obuf,1,stdout),op=obuf,*op++=x))
//const int mm = 1<<20;
//static char ibuf[mm],obuf[mm],*sp=ibuf,*ep=ibuf,*op = obuf,*p3 = obuf;
// 我愿称之为最丧心病狂,去掉注释开getchar() putchar()优化
typedef long long ll;
inline ll read(){
ll flag=1,x=0;
char ch = getchar();
while(!isdigit(ch)){
if(ch == '-')
flag = -1;
ch = getchar();
}
while(isdigit(ch)){
x = (x<<3)+(x<<1)+(ch^48);
ch=getchar();
}
return flag*x;
}
void write(ll x){
char ch[20];
ll len = 0;
if(x<0)
putchar('-'),x = -x;
do{
ch[len++] = (x%10)^48;
x /= 10;
}while(x);
while(len--)
putchar(ch[len]);
}
void writeln(ll x){
write(x);
putchar('\n');
}
int main(){
writeln(read());
// fwrite(obuf,op-obuf,1,stdout);// 用于最后输出所有内容,只有开getchar,putchar优化时才用。
return 0;
}
我愿称之为最快快读快写
最新推荐文章于 2022-07-28 10:00:41 发布