#include<iostream>
using namespace std;
inline int read() //输入外挂,输入量大时,比scanf效率高
{
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*10+ch-'0';ch=getchar();}
return x*f;
}
int main()
{
int t;
while(t=read())//0进不入循环 会结束,但可以读0
cout<<t<<endl;
}
快速输入函数(比scanf快)
最新推荐文章于 2021-11-06 11:11:31 发布