Submission #1034043

#TimeUsernameProblemLanguageResultExecution timeMemory
1034043ZicrusBoxes with souvenirs (IOI15_boxes)C++17
10 / 100
1 ms348 KiB
#include <bits/stdc++.h> #include "boxes.h" using namespace std; typedef long long ll; ll delivery(int n, int k, int l, int p[]) { ll sum = 0; for (int i = 0; i < n; i++) sum += 2*min(p[i], l-p[i]); return sum; }

Compilation message (stderr)

boxes.cpp: In function 'll delivery(int, int, int, int*)':
boxes.cpp:7:24: warning: unused parameter 'k' [-Wunused-parameter]
    7 | ll delivery(int n, int k, int l, int p[]) {
      |                    ~~~~^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...