Submission #1068263

#TimeUsernameProblemLanguageResultExecution timeMemory
1068263vjudge1COVID tests (CEOI24_covid)C++17
10 / 100
7046 ms348 KiB
#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; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...