c++关闭同步流注意事项

https://www.cnblogs.com/icesunbo/p/11489212.html(转载)

如果用

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

关闭同步流(使用cin、cout但加快输入输出速度),不能再使用scanf、printf了

否则会导致(不同步引起的)答案错误!!!

 

占坑,有空学了更深入的知识后再来更新

posted @ 2022-02-28 15:01  starlightlmy  阅读(1935)  评论(0)    收藏  举报