제출 #1243484

#제출 시각아이디문제언어결과실행 시간메모리
1243484sigma콤보 (IOI18_combo)C++20
0 / 100
0 ms408 KiB
#include <bits/stdc++.h>

int press(std::string p);

std::string guess_sequence(int N) {
    std::string s = "";
    std::string x = "abxy";
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < 4; j++) {
            s.push_back(x[j]);
            if (press(s) == i+1) break;
            else s.pop_back();
        }
    }
    return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...