Submission #625148

#TimeUsernameProblemLanguageResultExecution timeMemory
625148Mr_Husanboy콤보 (IOI18_combo)C++14
10 / 100
84 ms348 KiB
#include "combo.h"
#include <bits/stdc++.h>

using namespace std;

string guess_sequence(int N) {
    string p = "";
    string let = "ABXY";
    int n = N;
    for(int i = 0; i < n; i ++){
        for(auto u : let){
            p.push_back(u);
            if(press(p) == (int)(p.size())){
                break;
            }
            p.pop_back();
        }
    }
//    cout << p << endl;
    return p;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...