关于cin输入的时间效率问题

对于大量的数据,用cin进行输入往往会超时,除了换成scanf之外,我们还可以在函数内加一句   std::ios::sync_with_stdio(false);

就可以减少时间消耗,达到和scanf差不多的时间,但这个输入之后 就不能混用  scanf cin

参考资料:

  http://www.cnblogs.com/PrayG/p/5749832.html

原文地址:https://www.cnblogs.com/a249189046/p/6624934.html