Submission #963707

# Submission time Handle Problem Language Result Execution time Memory
963707 2024-04-15T14:02:43 Z Hezov Combo (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;
}
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 684 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 19 ms 412 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -