Submission #448409

#TimeUsernameProblemLanguageResultExecution timeMemory
448409power_zero1Combo (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...