제출 #1126793

#제출 시각아이디문제언어결과실행 시간메모리
1126793m0vlan콤보 (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...