Submission #285372

#TimeUsernameProblemLanguageResultExecution timeMemory
285372Pichon5Combo (IOI18_combo)C++17
10 / 100
72 ms548 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N){ char arr[4]={'A','B','X','Y'}; string s="",ss; for(int i=1;i<=N;i++){ for(int l=0;l<4;l++){ ss=s; if(ss.size()>0){ if(s[0]==arr[l]){ continue; } } ss+=arr[l]; if(press(ss)==i){ s=ss; break; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...