Submission #791962

#TimeUsernameProblemLanguageResultExecution timeMemory
791962JosiaBoxes with souvenirs (IOI15_boxes)C++17
10 / 100
1 ms212 KiB
#include "boxes.h" #include <bits/stdc++.h> using namespace std; #define int int64_t long long delivery(signed N, signed K, signed L, signed p[]) { long long res = 0; for (int i = 0; i<N; i++) res += 2*min(L-p[i], p[i]); return res; }

Compilation message (stderr)

boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:9:37: warning: unused parameter 'K' [-Wunused-parameter]
    9 | long long delivery(signed N, signed K, signed L, signed 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...