# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
33851 | nickyrio | Martian DNA (IOI16_dna) | C++14 | 19 ms | 3100 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 "dna.h"
#include <bits/stdc++.h>
using namespace std;
string solve2(string p, int n) {
if ((int)p.size() == n) return p;
if (make_test(p + "0")){
return solve2(p + "0", n);
}
return solve2(p + "1", n);
}
string solve(string p, int n) {
bool a0 = make_test("0" + p);
if (a0) return solve("0" + p, n);
bool a1 = make_test("1" + p);
if (a1) return solve("1" + p, n);
return solve2(p, n);
}
string analyse(int n, int t) {
return solve("", n);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |