제출 #335594

#제출 시각아이디문제언어결과실행 시간메모리
335594Joshc쌀 창고 (IOI11_ricehub)C++11
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "ricehub.h"
#include <algorithm>
using namespace std;

int besthub(int R, int L, int X[], long long B) {
  int left=0, right=0, best=0;
  long long total=0;
  while (left != R-1) {
    if (right >= R) break;
    int mid = (left+right)>>1;
    if (total+X[right]-X[mid] <= B) {
      total += X[right]-X[mid];
      best = max(best, right-left+1);
      right++;
    } else {
      total -= X[mid] - X[left];
      left = min(left+1, R-1);
      if (right==R-1) break;
    }
  }
  return best;
}

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

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