제출 #625147

#제출 시각아이디문제언어결과실행 시간메모리
625147Mr_Husanboy콤보 (IOI18_combo)C++14
0 / 100
1 ms208 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...