Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<cstdio>
  2.  
  3. const int N = 22*1024*1024;
  4.  
  5. main(){
  6.       char *tab = new char[N];
  7.       for(int i=0; i<N; i++) tab[i]=i;
  8.       int res = 0;
  9.       for(int i=N-1; i>=0; i--) res+=tab[i];
  10.       printf("%d\n",res);
  11.       delete[] tab;
  12. }
Add Comment
Please, Sign In to add comment