# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1178680 | shirokito | Combo (IOI18_combo) | C++20 | 19 ms | 456 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define el '\n'
string guess_sequence(int N) {
vector<char> lst_c = { 'A', 'B', 'X', 'Y' };
string cur = "";
for (int i = 1; i <= N; i++) {
for (char c: lst_c) {
if (press(cur + c) == i) {
cur += c;
break;
}
}
}
return cur;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |