Submission #153201

#TimeUsernameProblemLanguageResultExecution timeMemory
153201joylintpCombo (IOI18_combo)C++17
10 / 100
108 ms548 KiB
#include <bits/stdc++.h>
#include "combo.h"

using namespace std;

string guess_sequence(int n)
{
    string ret, but = "ABXY";

    for (int i = 0; i < n; i++)
        for (int j = 0; j < 4; j++)
            if (press(ret + but[j]) == (int)ret.size() + 1)
            {
                ret += but[j];
                break;
            }

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