Submission #1023306

#TimeUsernameProblemLanguageResultExecution timeMemory
1023306vaneaCombo (IOI18_combo)C++14
0 / 100
1 ms344 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(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...