# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
760749 | Nonoze | 콤보 (IOI18_combo) | C++17 | 1 ms | 256 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;
int n;
string bruteforce(string act) {
if (act.size()==n)
{
if (press(act)==n) return act;
return "*";
}
string a=bruteforce(act+"A");
if (a!="*") return a;
string b=bruteforce(act+"B");
if (b!="*") return b;
string x=bruteforce(act+"X");
if (x!="*") return x;
string y=bruteforce(act+"Y");
if (y!="*") return y;
return "*";
}
string guess_sequence(int temp) {
n=temp;
return bruteforce("");
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |