Submission #528918

#TimeUsernameProblemLanguageResultExecution timeMemory
528918Alex_tz307Boxes with souvenirs (IOI15_boxes)C++17
Compilation error
0 ms0 KiB
int64_t delivery(int n, int k, int l, int a[]) { int full = n / k, rem = n % k; int64_t ans = (int64_t)full * l; if (rem) { ans += min(a[rem - 1] * 2, (l - a[n - rem]) * 2); } return ans; }

Compilation message (stderr)

boxes.cpp:1:1: error: 'int64_t' does not name a type
    1 | int64_t delivery(int n, int k, int l, int a[]) {
      | ^~~~~~~