# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1222743 | colossal_pepe | Combo (IOI18_combo) | C++20 | 0 ms | 396 KiB |
#include "combo.h"
using namespace std;
const string DICT = "ABXY";
string guess_sequence(int N) {
if (N != 3) return "";
string p = "";
for (int i = 0; i < N; i++) {
for (char c : DICT) {
p.push_back(c);
if (press(p) == i + 1) break;
p.pop_back();
}
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |