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
- mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
- signed main() {
- int a;
- cin >> a;
- int cnt = a / 2, k = 0;
- for (int i = 0; i < a; i++) {
- if (rnd() % 2 == 0) {
- if (k != cnt) {
- k++;
- cout << "YOU WIN :)" << endl;
- }
- else {
- cout << "YOU LOSE :(" << endl;
- }
- }
- else {
- cout << "YOU LOSE :(" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement