# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
45979 | MatheusLealV | Martian DNA (IOI16_dna) | C++17 | 25 ms | 692 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"
using namespace std;
string analyse(int n, int t)
{
string aux = "";
while(true)
{
int dx = rand()%2;
if(dx == 0)
{
if( make_test(aux + "0") ) aux += "0";
else if(make_test(aux + "1")) aux += "1";
else break;
}
else
{
if( make_test(aux + "1") ) aux += "1";
else if(make_test(aux + "0")) aux += "0";
else break;
}
}
while(true)
{
int dx = rand()%2;
if(dx == 0)
{
if( make_test("0" + aux) ) aux = "0" + aux;
else if(make_test("1" + aux)) aux = "1" + aux;
else break;
}
else
{
if( make_test("1" + aux) ) aux = "1" + aux;
else if(make_test("0" + aux)) aux = "0" + aux;
else break;
}
}
return aux;
}
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... |