#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
int a;
cin>>a;
cout<<a;
return 0;
}
cin,cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句( ios::sync_with_stdio(false);)可以来打消iostream的输入 输出缓存,可以节省许多时间,使效率与scanf与printf相差无几,还有应注意的是scanf与printf使用的头文件应是stdio.h而不是 iostream