cin cout 优化
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); }
tie 函数是解除c++运行库层面对数据传输的相关绑定,而ios::sync_with_stdio(false);则是取消与c的标准程序库文件同步.
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); }
tie 函数是解除c++运行库层面对数据传输的相关绑定,而ios::sync_with_stdio(false);则是取消与c的标准程序库文件同步.