Submission #1126790

#TimeUsernameProblemLanguageResultExecution timeMemory
1126790m0vlanCombo (IOI18_combo)C++20
5 / 100
0 ms400 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; } } for (char i:st) { if (press(p+i)==2) { p+=i; break; } } for (char i:st) { if (press(p+i)==3) { p+=i; break; } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...