# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
623477 | teki | Boxes with souvenirs (IOI15_boxes) | C++11 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#ifndef LOCAL_DEBUG
#include "boxes.h"
#endif
#define pb push_back
#define MS(x,y) memset((x), (y), sizeof((x)))
typedef long long ll;
const ll MN = 1000000007;
using namespace std;
int delivery (int n, int k, int l, vector<int> pos) {
ll res = 0;
for (int i = 0; i<n; i++) res += min(pos[i],l-pos[i]);
return res;
}
#ifdef LOCAL_DEBUG
int main() {
#ifdef LOCAL_DEBUG
fstream cin("in.txt");
#endif
ios_base::sync_with_stdio(false);
cout.tie(0);
cin.tie(0);
}
#endif