제출 #1114530

#제출 시각아이디문제언어결과실행 시간메모리
1114530lftroq콤보 (IOI18_combo)C++14
0 / 100
1 ms336 KiB
#include "combo.h" using namespace std; string guess_sequence(int N) { string p="",s=""; for(int i=0;i<N;i++) { p.push_back('A'); if(press(p)==i) { s.push_back('A'); continue; } p.pop_back(); p.push_back('B'); if(press(p)==i) { s.push_back('B'); continue; } p.pop_back(); p.push_back('X'); if(press(p)==i) { s.push_back('X'); continue; } p.pop_back(); p.push_back('Y'); s.push_back('Y'); } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...