#include<iostream>
#include<cstdio>
using namespace std;
void read(int &x){
x=0;char c=getchar();
while(c<'0' || c>'9')c=getchar();
while(c>='0' && c<='9'){
x=x*10+c-'0';
c=getchar();
}
}
void write(int x){
int y=10,len=1;
while(y<=x) {y*=10;len++;}
while(len--){y/=10;putchar(x/y+48);x%=y;}
}
int main(){
freopen("tt.in","r",stdin);
freopen("tt.out","w",stdout);
int i,j,k,m,n;
//for(i=1;i<=10000000;i++){read(n);printf("%d ",n);}
for(i=1;i<=10000000;i++){read(n);write(n);putchar(' ');}
return 0;
}
输入输出优化(来自LG)
最新推荐文章于 2025-01-01 13:06:55 发布