Submission #963713

# Submission time Handle Problem Language Result Execution time Memory
963713 2024-04-15T14:05:36 Z Hezov Combo (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;
}
# Verdict Execution time Memory Grader output
1 Runtime error 27 ms 428 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 20 ms 412 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -