Submission #587538

#TimeUsernameProblemLanguageResultExecution timeMemory
587538shrimbCombo (IOI18_combo)C++17
10 / 100
84 ms480 KiB
#include"bits/stdc++.h"
using namespace std;
#include "combo.h"

std::string guess_sequence(int N) {
    string cur = "";
    int len = 1;
    for (int i = 0 ; i < N ; i++) {
        for (char j : string("ABXY")) {
            if (press(cur + j) == len) {
                len++;
                cur = cur + j;
                break;
            }
        }
    }
    return cur;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...