# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1240676 | Dedibeat | Martian DNA (IOI16_dna) | C++20 | 1097 ms | 1164 KiB |
#include "dna.h"
#include<bits/stdc++.h>
using namespace std;
int solve(string &pref, int n)
{
string cand = "01";
if(rand() & 1) swap(cand[0], cand[1]);
if(pref.size() == n) return 1;
pref.push_back(cand[0]);
if(make_test(pref) && solve(pref, n))
return 1;
pref.pop_back();
pref.push_back(cand[1]);
if(make_test(pref) && solve(pref, n))
return 1;
pref.pop_back();
return 0;
}
std::string analyse(int n, int t) {
string ans = "";
assert(solve(ans, n));
return ans;
}
컴파일 시 표준 에러 (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... |