| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1332887 | SmuggingSpun | Martian DNA (IOI16_dna) | C++20 | 4 ms | 352 KiB |
#include "dna.h"
#include<bits/stdc++.h>
using namespace std;
int n;
namespace sub1{
string solve(){
for(int mask = 1; mask < (1 << n); mask++){
string s = "";
for(int i = 0; i < n; i++){
s += char((mask >> i & 1) + 48);
}
if(make_test(s) == n){
return s;
}
}
return string(n, '0');
}
}
string analyse(int _n, int t){
n = _n;
if(t == 31){
return sub1::solve();
}
} 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... | ||||
