# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1207481 | That_Salamander | Combo (IOI18_combo) | C++20 | 19 ms | 440 KiB |
#include "combo.h"
using namespace std;
char chars[] = "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 + chars[j]) == i + 1) {
curr += chars[j];
break;
}
}
}
return curr;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |