Submission #1240655

#TimeUsernameProblemLanguageResultExecution timeMemory
1240655AmaarsaaMartian DNA (IOI16_dna)C++20
0 / 100
1097 ms328 KiB
#include "dna.h" #include<bits/stdc++.h> using namespace std; string analyse(int n, int t) { string str = ""; while(str.size() < n) { string str1 = str + "1"; if ( make_test(str1)) { str = str1; continue; } str1 = str + "0"; if ( make_test(str1)) { str = str1; continue; } } while (str.size() < n) { string str1 = "1" + str; if ( make_test(str1)) str = str1; else str = "0" + str; } return str; }

Compilation message (stderr)

dna.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...