제출 #1170577

#제출 시각아이디문제언어결과실행 시간메모리
1170577lightentheshadowCOVID tests (CEOI24_covid)C++20
10 / 100
690 ms408 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, T; long double P;
    cin >> n >> P >> T;

    while (T--) {
        string S = "", ans = "";
        for (int i = 1; i <= n; i++) {
            S += "0";
            ans += "0";
        }

        for (int i = 0; i < n; i++) {
            S[i] = '1';
            cout << 'Q' << ' ' << S << endl;

            char res; cin >> res;
            if (res == 'P') ans[i] = '1';

            S[i] = '0';
        }

        cout << "A " << ans << endl;
        char res; cin >> res;
        if (res == 'W') exit(0);
    }

    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...