제출 #1171648

#제출 시각아이디문제언어결과실행 시간메모리
1171648nguyenkhangninh99콤보 (IOI18_combo)C++17
10 / 100
19 ms460 KiB
#include <bits/stdc++.h>
#include "combo.h"

using namespace std;

string guess_sequence(int N){
    string res = "";
    vector<string> k;
    k.push_back("A");
    k.push_back("B");
    k.push_back("X");
    k.push_back("Y");
  
    for (int i = 1; i <= N; i++){
        for(string x: k){
            if(press(res + x) == res.size() + 1){
                res += x;
                break;
            }
        }
    }
    return res;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...