Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <vector>
- #include <set>
- #include <map>
- #include <cmath>
- #include <algorithm>
- using namespace std;
- int main()
- {
- string S = "a";
- int n;
- while (S[0] != 'S')
- {
- cin >> n;
- cout << rand() % n + 1 << '\n';
- cout.flush();
- cin >> S;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement