# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
33851 | nickyrio | Martian DNA (IOI16_dna) | C++14 | 19 ms | 3100 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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);
}
컴파일 시 표준 에러 (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... |