#include "boxes.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll delivery(int N, int K, int L, int p[]) {
ll farthestClockwise = p[N - 1];
ll farthestAClockwise = L - p[0];
ll minBetween = min(farthestAClockwise, farthestClockwise);
return 2 * minBetween;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |