제출 #256708

#제출 시각아이디문제언어결과실행 시간메모리
256708lani1akea콤보 (IOI18_combo)C++17
10 / 100
107 ms452 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; std::string guess_sequence(int N) { string p = ""; int x = 0; while(x < N) { if ( press(p + 'A') > x) { ++x; p += 'A'; continue; } else if ( press(p + 'B') > x) { ++x; p += 'B'; continue; } else if ( press(p + 'X') > x) { ++x; p += 'X'; continue; } else if ( press(p + 'Y') > x) { ++x; p += 'Y'; continue; } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...