Submission #1226858

#TimeUsernameProblemLanguageResultExecution timeMemory
1226858fauntleroyCombo (IOI18_combo)C++20
0 / 100
0 ms408 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;

string guess_sequence(int n) {
    string ans;
    for (int i = 0; i < n; ++i) {
        for (char c : {'A', 'B', 'X', 'Y'}) {
            ans.push_back(c);
            if (press(ans))
                break;           
            ans.pop_back();      
        }
    }
    return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...