# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1240648 | Amaarsaa | Martian DNA (IOI16_dna) | C++20 | 18 ms | 500 KiB |
#include "dna.h"
#include<bits/stdc++.h>
using namespace std;
string analyse(int n, int t) {
int j, r;
for (int i = 0; i + 1 < (1<< n); i ++) {
string str = "";
for (j = 0; j < n; j ++) {
r = (1<< j) & i;
if ( r == 0) str = str + '0';
else str = str + '1';
}
if ( make_test(str)) {
return str;
}
}
return string(n, '1');
}
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... |