标签:syn include printf nbsp info name ble namespace load
如何在输入输出上提高一下效率emmmm
1 #include<iostream> 2 #include<stdio.h> 3 #include<stdlib.h> 4 #include<time.h> 5 using namespace std; 6 7 int main(){ 8 int start=clock(); 9 10 std::ios::sync_with_stdio(false); 11 for (int i=0;i<10000000;i++){ 12 int t; 13 cin>>t; 14 } 15 printf("%.3lf\n",double(clock()-start)/CLOCKS_PER_SEC); 16 return 0; 17 }
置无关.
std:ios:sync_with_stdio (false)以及局限性
标签:syn include printf nbsp info name ble namespace load
原文地址:https://www.cnblogs.com/zhmlzhml/p/13287748.html