Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define int long long
- using namespace std;
- const int PIVO = 111111;
- int a[PIVO];
- int get_kth(int a[], int k) {
- return a[k];
- }
- signed main(){
- ios::sync_with_stdio(0);
- cin.tie(0);
- for (int i = 0; i < PIVO; i++) a[i] = rand();
- int sum = 0;
- for (int i = 0; i < PIVO; i++) sum += get_kth(a, i);
- cout << sum;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement