| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1369341 | norrawichzzz | Combo (IOI18_combo) | C++20 | 8 ms | 492 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string S = "";
for (int i = 0; i < N; ++i) {
string S1 = S+'A'+S+'B';
if (press(S1) >= i+1) {
string S3 = S+'A';
if (press(S3) == i+1) S+='A';
else S+='B';
}
else {
string S2 = S+'X';
if (press(S2) == i+1) S+='X';
else S+='Y';
}
}
return S;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
