读入输出优化: ios::sync_with_stdio(false);

注意不能混用scanf和printf

  ios::sync_with_stdio(false);

原文地址:https://www.cnblogs.com/qq2210446939/p/11232830.html