제출 #1268774

#제출 시각아이디문제언어결과실행 시간메모리
1268774MunkhErdene콤보 (IOI18_combo)C++17
10 / 100
20 ms408 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
#define BC ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long
#define pb push_back
#define _ << " " <<
string guess_sequence(int n){
    vector<char> chr({'A', 'B', 'X', 'Y'});
    string s(n, 'A');
    for(int i = 0; i < n; i++){
        for(auto c : chr){
            string b = s;
            b[i] = c;
            ll x = press(b);
            if(x >= i + 1){
                s = b;
                break;
            }
        }
    }
    return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...