제출 #768190

#제출 시각아이디문제언어결과실행 시간메모리
768190raysh07Travelling Merchant (APIO17_merchant)C++17
컴파일 에러
0 ms0 KiB
#include "gap.h" #include <bits/stdc++.h> using namespace std; long long findGap(int t, int n) { long long mx, mn; MinMax(1, (long long)1e18, &mn, &mx); long long ans = (mx - mn + n - 1) / n; long long last = mn; //go from s to t, but make jumps of size ans long long curr = mn + 1; while (curr <= mx){ //query [curr, curr + ans] long long mi, ma; MinMax(curr, curr + ans, &mi, &ma); curr += ans; if (mi == -1){ continue; } ans = max(mi - last, ans); last = ma; } return ans; }

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

merchant.cpp:1:10: fatal error: gap.h: No such file or directory
    1 | #include "gap.h"
      |          ^~~~~~~
compilation terminated.