Submission #1084641

#TimeUsernameProblemLanguageResultExecution timeMemory
1084641SulACOVID tests (CEOI24_covid)C++17
10 / 100
8 ms728 KiB
#include <bits/stdc++.h> using namespace std; void interact(int n) { string covid(n, '0'); for (int i = 0; i < n; i++) { cout << "Q " << string(i, '0') << '1' << string(n-i-1, '0') << endl; cin >> covid[i]; covid[i] = covid[i] == 'P' ? '1' : '0'; } cout << "A " << covid << "\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n,t; double p; cin >> n >> p >> t; while (t--) { interact(n); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...