답안 #1068712

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1068712 2024-08-21T11:29:26 Z vjudge1 COVID tests (CEOI24_covid) C++17
10 / 100
1918 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();
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 344 KB Output is correct
2 Correct 4 ms 344 KB Output is correct
3 Correct 5 ms 344 KB Output is correct
4 Correct 5 ms 344 KB Output is correct
5 Correct 5 ms 344 KB Output is correct
6 Correct 5 ms 344 KB Output is correct
7 Correct 6 ms 344 KB Output is correct
8 Correct 7 ms 344 KB Output is correct
9 Correct 5 ms 344 KB Output is correct
10 Correct 8 ms 344 KB Output is correct
11 Correct 5 ms 344 KB Output is correct
12 Correct 5 ms 344 KB Output is correct
13 Correct 6 ms 344 KB Output is correct
14 Correct 8 ms 340 KB Output is correct
15 Correct 5 ms 344 KB Output is correct
16 Correct 3 ms 344 KB Output is correct
17 Correct 3 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1918 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -