Submission #791961

#TimeUsernameProblemLanguageResultExecution timeMemory
791961JosiaBoxes with souvenirs (IOI15_boxes)C++17
0 / 100
0 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(N-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[]) {
      |                              ~~~~~~~^
boxes.cpp:9:47: warning: unused parameter 'L' [-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...