fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. vector<int> a[2000007];
  6. long long t1,t2,n;
  7.  
  8. int main()
  9. {
  10. n = 1000000;
  11. t1 = clock();
  12. for(int i=1; i<=n; i++) {
  13. a[i].push_back(i);
  14. a[i].push_back(i+1);
  15. }
  16. t2 = clock();
  17. cout << t2-t1<<endl;
  18.  
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.13s 81684KB
stdin
Standard input is empty
stdout
95917