#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 |
- |