제출 #565862

#제출 시각아이디문제언어결과실행 시간메모리
565862imtiyazrasool92콤보 (IOI18_combo)C++17
10 / 100
49 ms420 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string P, possible = "ABXY"; for (int i = 0; i < N; i++) { for (int j = 0; j < (int)possible.size(); j++) { P.push_back(possible[j]); if (press(P) == (i + 1)) { if (i == 0) { possible.erase(possible.begin() + j); } break; } P.pop_back(); } } return P; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...