# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1238981 | Timosh | Combo (IOI18_combo) | C++20 | 20 ms | 456 KiB |
#include "bits/stdc++.h"
#include "combo.h"
using namespace std;
std::string guess_sequence(int N)
{
string S, s = "ABXY";
while (S.size() < N)
{
for (int i = 0; i < 4; i++)
{
string T = S;
T += s[i];
if (press(T) == S.size() + 1)
{
S += s[i];
break;
}
}
}
return S;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |