Submission #1023307

#TimeUsernameProblemLanguageResultExecution timeMemory
1023307vaneaCombo (IOI18_combo)C++14
10 / 100
78 ms1104 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
using ll = long long;

string guess_sequence(int n) {
    vector<string> pos = {"A", "B", "X", "Y"};
    string ans = "";
    int last = 0;
    for(int i = 0; i < n; i++) {
        for(auto it : pos) {
            if(press(ans+it) > last) {
                ans += it;
                ++last;
                continue;
            }
        }
    }
    return ans;
}

#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...