| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1170577 | lightentheshadow | COVID tests (CEOI24_covid) | C++20 | 690 ms | 408 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 time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
