제출 #949152

#제출 시각아이디문제언어결과실행 시간메모리
949152SoSmolSten콤보 (IOI18_combo)C++17
10 / 100
33 ms1448 KiB
#include "combo.h" using namespace std; const string combo = "ABXY"; string guess_sequence(int N) { string p = ""; for(int i = 0; i < N; ++i){ for(int j = 0; j < 4; ++j){ if(i){ if(p[0] == combo[j]) continue; } p += combo[j]; int v = press(p); if(v > i) break; p.pop_back(); } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...