# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
34484 | top34051 | Martian DNA (IOI16_dna) | C++14 | 16 ms | 2016 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 s;
bool ask() {
return make_test(s);
}
string analyse(int n, int t) {
while(1) {
s = s + '0';
if(!ask()) s[s.size()-1] = '1';
if(!ask()) break;
}
while(1) {
s = '0' + s;
if(!ask()) s[0] = '1';
if(!ask()) break;
}
return s;
}
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... |