# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
742163 | computerbox | Combo (IOI18_combo) | C++14 | 1 ms | 336 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;
string guess_sequence(int N) {
vector<char>buttons;
buttons.push_back('A');
buttons.push_back('X');
buttons.push_back('Y');
buttons.push_back('B');
for(int i = 0; i < 4; i++)
{
for(int j = i + 1; j < 4; j++)
{
for(int k = j; k < 4; k++)
{
string s = "";
s += buttons[i];
s += buttons[j];
s += buttons[k];
int o = press(s);
if(o == 3)return s;
}
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |