Submission #313810

#TimeUsernameProblemLanguageResultExecution timeMemory
313810baibhav26062008Combo (IOI18_combo)C++14
10 / 100
129 ms448 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { const char all[]="ABXY"; int length[N]; string s = ""; for(int i=0;i<N;i++) { for(int j=0;j<4;j++) { length[j]=press(s+all[j]); } for(int j=0;j<4;j++) { if(length[j]==i+1) { s+=all[j]; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...