Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int n, q;
- cin >> n >> q;
- string s(n, ' ');
- for (int query = 1; query <= q; query++) {
- int a, b, x;
- // code
- cout << '?' << ' ' << a << ' ' << b << endl;
- cin >> x;
- // code
- }
- // code
- cout << '!' << ' ' << s << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement