# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
419146 | LouayFarah | Boxes with souvenirs (IOI15_boxes) | C++14 | 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"
#include "boxes.h"
using namespace std;
int delivery(int n, int k, int l, int positions[])
{
if(k==1)
{
int res = 0;
for(int i = 0; i<n; i++)
{
if(positions[i]>l/2)
{
res+=2*(l-positions[i]);
}
else
{
res+=2*(positions[i]);
}
}
return res;
}
else if(k==n)
{
}
else
{
}
}