Submission #1240659

#TimeUsernameProblemLanguageResultExecution timeMemory
1240659AmaarsaaMartian DNA (IOI16_dna)C++20
0 / 100
1096 ms504 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[str1.size() - 1]= '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...