| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1310370 | kawhiet | Boxes with souvenirs (IOI15_boxes) | C++20 | 1 ms | 576 KiB |
#include <bits/stdc++.h>
#include "boxes.h"
using namespace std;
long long delivery(int n, int k, int l, int _p[]) {
vector<int> pos(n);
for (int i = 0; i < n; i++) {
pos[i] = _p[i];
}
vector<int> d(n);
for (int i = 0; i < n; i++) {
d[i] = min(pos[i], l - pos[i]);
}
long long ans = 0;
for (int i = 0; i < n; i++) {
ans += 2 * d[i];
}
return ans;
}| # | 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... | ||||
