제출 #1240659

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

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