| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 731155 | sleepntsheep | 콤보 (IOI18_combo) | C++17 | 0 ms | 0 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>
using namespace std;
string guess_sequence(int N)
{
char ans[2005] { 0 };
for (int i = 0; i < N; i++)
{
for (int j = 0; j < 3; j++)
{
ans[i] = "ABX"[j];
int k = press(string(ans));
if (k == i + 1) { break; }
ans[i] = 0;
}
if (!ans[i]) ans[i] = 'Y';
}
return string(ans);
}
