# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
127320 | Osama_Alkhodairy | Martian DNA (IOI16_dna) | C++17 | 25 ms | 420 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 <bits/stdc++.h>
#include "dna.h"
//~ #include "grader.cpp"
using namespace std;
std::string analyse(int n, int t) {
string ret;
while(1){
string cur = ret;
cur += '0';
if(make_test(cur)) ret += '0';
else{
cur.pop_back();
cur += '1';
if(make_test(cur)) ret += '1';
else break;
}
}
while(1){
string cur = ret;
cur = '0' + cur;
if(make_test(cur)) ret = '0' + ret;
else{
cur[0] = '1';
if(make_test(cur)) ret = '1' + ret;
else break;
}
}
return ret;
}
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... |