Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <numeric>
- #include <cassert>
- #include <vector>
- #include <cmath>
- #include <map>
- typedef long long llong;
- const int MAXN = 200000 + 10;
- const int INF = 1e9 + 1;
- void solve()
- {
- srand(357281);
- char let[2] = {'U', 'R'};
- while (true)
- {
- char c = let[rand()%2];
- std::cout << c << '\n' << std::flush;
- std::cin >> c;
- if (c == 'Y' || c == 'E')
- {
- exit(0);
- }
- }
- }
- void fastIO()
- {
- std::ios_base :: sync_with_stdio(0);
- std::cout.tie(nullptr);
- std::cin.tie(nullptr);
- }
- int main()
- {
- fastIO();
- solve();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement