Submission #713056

#TimeUsernameProblemLanguageResultExecution timeMemory
713056tht2005Combo (IOI18_combo)C++17
10 / 100
78 ms460 KiB
#include "combo.h"
#include <bits/stdc++.h>

using namespace std;

const string BUTTONS = "ABXY";

string guess_sequence(int N) {
    string res;
    for(int i = 1; i <= N; ++i) {
        for(int j = 0; j < 4; ++j) {
            res.push_back(BUTTONS[j]);
            if(press(res) == i) {
                break;
            }
            res.pop_back();
        }
    }
    return res;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...