Submission #785753

#TimeUsernameProblemLanguageResultExecution timeMemory
785753BoasCombo (IOI18_combo)C++17
10 / 100
80 ms432 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { vector<char> buttons = {'A', 'B', 'X', 'Y'}; string S; for (int i = 0; i < N; i++) { for (char c : buttons) { string p = S + c; if (press(p) == i + 1) { S = p; break; } } } return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...