Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- const int N = 22*1024*1024;
- main(){
- char *tab = new char[N];
- for(int i=0; i<N; i++) tab[i]=i;
- int res = 0;
- for(int i=N-1; i>=0; i--) res+=tab[i];
- printf("%d\n",res);
- delete[] tab;
- }
Add Comment
Please, Sign In to add comment