Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define int long long
  4. mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
  5. signed main() {
  6. int a;
  7. cin >> a;
  8. int cnt = a / 2, k = 0;
  9. for (int i = 0; i < a; i++) {
  10. if (rnd() % 2 == 0) {
  11. if (k != cnt) {
  12. k++;
  13. cout << "YOU WIN :)" << endl;
  14. }
  15. else {
  16. cout << "YOU LOSE :(" << endl;
  17. }
  18. }
  19. else {
  20. cout << "YOU LOSE :(" << endl;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement