ios::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
第一,取消cin和cout的绑定
//cout<<endl;
cout<<'\n'
第二,换行不用endl,用\n;
可以达到类似printf的速度
在 Educational Codeforces Round 139 (Rated for Div. 2)第四题,即为卡输入输出。
使用方法1,能3400ms左右过
使用方法1+2后能700ms的速度过。
不用,就是tle。
特此发文,引以为戒