| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 963707 | Hezov | Combo (IOI18_combo) | C++17 | 19 ms | 684 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 "combo.h"
#include <bits/stdc++.h>
using namespace std;
/// 4N solution.
string guess_sequence(int N)
{
string sol;
char keys[] = {'A','B','X','Y'};
for(int i = 1;i<=N;i++)
{
int poz = 0;
int len = sol.size();
sol[len] = keys[poz];
while(press(sol)!=i)
poz++,sol[len] = keys[poz];
}
return sol;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
