답안 #1068263

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1068263 2024-08-21T08:55:41 Z vjudge1 COVID tests (CEOI24_covid) C++17
10 / 100
7000 ms 348 KB
#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    double p;
    cin >> p;
    int t;
    cin >> t;
    char x;

    while(t--){
        int pos[n];
        for(int i = 0; i < n; i++){
            cout << "Q" << " ";
            for(int j = 0; j < n; j++){
                if(j != i){
                    cout << "0";
                }else{
                    cout <<"1";
                }
            }
            cout << endl<<flush;
            cin >> x;
            if(x == 'P'){
                pos[i] = 1;
            }else{
                pos[i] = 0;
            }
    }
    cout << "A" <<" ";
    for(int i = 0; i < n; i++){
        cout<<pos[i];
    }
    cout << endl<<flush;
    cin >> x;

    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 26 ms 340 KB Output is correct
2 Correct 32 ms 344 KB Output is correct
3 Correct 23 ms 340 KB Output is correct
4 Correct 39 ms 344 KB Output is correct
5 Correct 24 ms 344 KB Output is correct
6 Correct 40 ms 344 KB Output is correct
7 Correct 22 ms 344 KB Output is correct
8 Correct 23 ms 344 KB Output is correct
9 Correct 22 ms 344 KB Output is correct
10 Correct 26 ms 344 KB Output is correct
11 Correct 26 ms 344 KB Output is correct
12 Correct 23 ms 344 KB Output is correct
13 Correct 34 ms 344 KB Output is correct
14 Correct 23 ms 344 KB Output is correct
15 Correct 22 ms 344 KB Output is correct
16 Correct 23 ms 348 KB Output is correct
17 Correct 30 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 7046 ms 344 KB Time limit exceeded
2 Halted 0 ms 0 KB -