제출 #448409

#제출 시각아이디문제언어결과실행 시간메모리
448409power_zero1콤보 (IOI18_combo)C++17
10 / 100
96 ms536 KiB
#include "combo.h" using namespace std; std::string guess_sequence(int N) { string ANS; string m[] = {"A", "B", "X", "Y"}; int mx = 0; string mxChar; for (int i = 0; i < N; i++) { for (string j : m) { if (i && ANS[0] == j[0]) continue; int score = press(ANS+j); if (score > mx) { mx = score; mxChar = j; } } ANS += mxChar; } return ANS; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...