Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define int long long
- #define ii pair <int, int>
- #define app push_back
- #define all(a) a.begin(), a.end()
- #define bp __builtin_popcount
- #define ll long long
- #define mp make_pair
- #define f first
- #define s second
- mt19937 rnd(time(0));
- signed main() {
- #ifdef HOME
- freopen("input.txt", "r", stdin);
- #else
- ios_base::sync_with_stdio(0); cin.tie(0);
- #endif
- int t = 1000000;
- int ans = 0;
- while (t--) {
- int sum = 0;
- for (int i = 0; i < 100; ++i) {
- ++sum;
- while (rnd() & 1) ++sum;
- }
- ans = max(ans, sum);
- }
- cout << ans << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement