제출 #1214756

#제출 시각아이디문제언어결과실행 시간메모리
1214756nekolie동굴 (IOI13_cave)C++20
컴파일 에러
0 ms0 KiB
// When she's prettier than any DP you've ever seen... #include <bits/stdc++.h> #include "cave.in" using namespace std; void exploreCave(int n) { int sw[n], open[n], door[n], pom[n]; fill(open,open+n,2); for (int i = 0; i < n; i++) { fill(pom,pom+n,0); for (int j = 0; j < n; j++) if (open[j] != 2) pom[j] = open[j]; int ind = tryCombination(pom), l = 0, r = n-1; sw[i] = ((ind == i) ? 1 : 0); while (l < r) { int s = (l+r)/2; fill(pom,pom+n,sw[i]), fill(pom+l,pom+s+1,(1^sw[i])); for (int j = 0; j < n; j++) if (open[j] != 2) pom[j] = open[j]; ind = tryCombination(pom); if (ind == i) r = s; else l = s+1; } open[l] = sw[i], door[l] = i; } answer(open,door); }

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

cave.cpp:3:10: fatal error: cave.in: No such file or directory
    3 | #include "cave.in"
      |          ^~~~~~~~~
compilation terminated.