# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1207387 | That_Salamander | Combo (IOI18_combo) | C++20 | 19 ms | 456 KiB |
#include <bits/stdc++.h>
using namespace std;
#include "combo.h"
char OPTIONS[] = "ABXY";
string guess_sequence(int N) {
string curr = "";
for (int i = 0; i < N; i++) {
for (int j = 0; j < 4; j++) {
if (press(curr + OPTIONS[j]) == i+1) {
curr += OPTIONS[j];
break;
}
}
}
return curr;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |