| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 33850 | nickyrio | Martian DNA (IOI16_dna) | C++14 | 1000 ms | 318464 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) {
if (make_test("00")) {
return solve("00", n);
}
if (make_test("01")) {
return solve("01", n);
}
if (make_test("10")) {
return solve("10", n);
}
return solve("11", 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... | ||||
