C++输入优化

kk3-share / 2023-07-15 / 原文

为避免cin&cout导致的TLE可在主函数中加上以下三句话:

std::ios::sync_with_stdio(false); 
cin.tie(0);
cout.tie(0);