有三条建议用于提高C++的输入输出速度:
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
std::ios::sync_with_stdio(false);
cin.tie(0);
int n,m;
cin>>n>>m;
cout<<n<<" "<<m<<"\n";
return 0;
} 原文地址:http://blog.csdn.net/wtyvhreal/article/details/41910267