Submission #1068608

#TimeUsernameProblemLanguageResultExecution timeMemory
1068608AlebnCOVID tests (CEOI24_covid)C++14
10 / 100
1733 ms344 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...