제출 #109138

#제출 시각아이디문제언어결과실행 시간메모리
109138kingfran1907콤보 (IOI18_combo)C++14
10 / 100
130 ms456 KiB
#include "combo.h"
#include <bits/stdc++.h>

using namespace std;
const char koj[] = "ABXY";

string guess_sequence(int n) {
        string s;
        for (int i = 0; i < n; i++) {
                for (int j = 0; j < 4; j++) {
                        string tren = s + koj[j];
                        if (press(tren) == i + 1) {
                                s = tren;
                                break;
                        }
                }
        }
        return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...