제출 #794854

#제출 시각아이디문제언어결과실행 시간메모리
794854baneDetecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "dna.h" using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); string analyse(int n, int t) { string ans = ""; int resp = 0; while(ans.size() < n){ if (19 < resp){ break; } ans += '0' + uniform_int_distribution<int>(0,1)(rng); if (make_test(ans)){ resp = 0; continue; } if (ans.back() == '1')ans.back() = '0'; else ans.back() = '1'; ++resp; } int r = ans.size() - 1, l = ans.size() - resp; while(l<=r){ int mid = (l+r) / 2; if (make_test(ans.substr(0,mid+1))){ l = mid + 1; }else{ r = mid - 1; } } //iame desna strana ans = ans.substr(0,l); while(ans.size() != n){ if (make_test('1' + ans))ans = '1' + ans; else ans = '0' + ans; } return ans; }

컴파일 시 표준 에러 (stderr) 메시지

molecules.cpp:2:18: fatal error: dna.h: No such file or directory
    2 |         #include "dna.h"
      |                  ^~~~~~~
compilation terminated.