Submission #1068669

# Submission time Handle Problem Language Result Execution time Memory
1068669 2024-08-21T11:17:04 Z Alebn COVID tests (CEOI24_covid) C++14
10 / 100
1959 ms 344 KB
#include <bits/stdc++.h>
#define int long long

using namespace std;

int n, t;
double p;

void solve() {
    string res(n, '0'), ask(n, '0');
    char temp;
    for(int i = 0; i < n; i++) {
        ask[i] = '1';
        cout << "Q " << ask << endl;
        cin >> temp;
        if(temp == 'P') res[i] = '1';
        ask[i] = '0';
    }
    cout << "A " << res << endl;
    cin >> temp;
}

signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> n >> p >> t;
    while(t--) solve();
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 344 KB Output is correct
2 Correct 8 ms 344 KB Output is correct
3 Correct 7 ms 344 KB Output is correct
4 Correct 4 ms 344 KB Output is correct
5 Correct 6 ms 344 KB Output is correct
6 Correct 5 ms 344 KB Output is correct
7 Correct 7 ms 344 KB Output is correct
8 Correct 7 ms 344 KB Output is correct
9 Correct 7 ms 344 KB Output is correct
10 Correct 8 ms 344 KB Output is correct
11 Correct 4 ms 344 KB Output is correct
12 Correct 7 ms 344 KB Output is correct
13 Correct 8 ms 344 KB Output is correct
14 Correct 7 ms 344 KB Output is correct
15 Correct 5 ms 344 KB Output is correct
16 Correct 8 ms 344 KB Output is correct
17 Correct 5 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1959 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -