제출 #1240668

#제출 시각아이디문제언어결과실행 시간메모리
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; }

컴파일 시 표준 에러 (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...