Submission #1126793

#TimeUsernameProblemLanguageResultExecution timeMemory
1126793m0vlanCombo (IOI18_combo)C++20
10 / 100
19 ms448 KiB
#include "combo.h" #include <set> std::string guess_sequence(int N) { std::string p=""; std::set<char>st={'A','X','B','Y'}; for (char i:st) { if (press(p+i)==1) { p+=i; st.erase(i); break; } } while (p.size()<N) { for (char i:st) { if (press(p+i)==p.size()+1) { p+=i; break; } } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...