답안 #963707

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963707 2024-04-15T14:02:43 Z Hezov 콤보 (IOI18_combo) C++17
0 / 100
19 ms 684 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 12 ms 684 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 19 ms 412 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -