备战noip2019 TG
inline int read()
{
int ans=0,f=1;
char c;
c=getchar();
while(c<'0' || c>'9')
{
if(c=='-')
f=-1;
c=getchar();
}
while(c>='0' && c<='9')
{
ans=ans*10+c-'0';
c=getchar();
}
return ans*f;
}
标签:int,noip2019,char,while,ans,快读,getchar
来源: https://www.cnblogs.com/zhouzhihao/p/11355227.html