# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1084662 | Aliyyiakbar | Combo (IOI18_combo) | C++17 | 56 ms | 1116 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "bits/stdc++.h"
#include "combo.h"
using namespace std;
string guess_sequence(int n)
{
int d = 0;
string res = "";
set<string>st = {"A","B","X","Y"};
for (int i = 0; i <= n; ++i)
{
for (auto x : st)
{
if (press(res + x) > i)
{
res += x;
break;
}
}
}
return res;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |