답안 #963713

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963713 2024-04-15T14:05:36 Z Hezov 콤보 (IOI18_combo) C++17
0 / 100
27 ms 428 KB
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
/// 4N solution.
string guess_sequence(int N)
{
    string sol = "";
    char keys[] = {'A','B','X','Y'};
    for(int i = 1;i<=N;i++)
    {
        int poz = 0;
        int len = sol.size();
        sol[len] = keys[poz];
        while(press(sol)!=i)
            poz++,sol[len] = keys[poz];
    }
    return sol;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 27 ms 428 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 20 ms 412 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -