Submission #1240668

#TimeUsernameProblemLanguageResultExecution timeMemory
1240668AmaarsaaMartian DNA (IOI16_dna)C++20
36 / 100
9 ms516 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; } break; } while (str.size() < n) { string str1 = "1" + str; if ( !make_test(str1)) str1[0] = '0'; str = str1; } 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...