Submission #1322758

#TimeUsernameProblemLanguageResultExecution timeMemory
1322758akneekaCombo (IOI18_combo)C++20
10 / 100
21 ms444 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;

string guess_sequence(int N) {
    string ans = "";
    string alphabet = "ABXY";

    for (int pos = 0; pos < N; pos++) {
        for (char c : alphabet) {
            int r = press(ans + c);
            if (r == (int)ans.size() + 1) {
                ans += c;
                break;
            }
        }
    }

    return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...