Submission #64905

#TimeUsernameProblemLanguageResultExecution timeMemory
64905InovakBoxes with souvenirs (IOI15_boxes)C++14
0 / 100
2 ms256 KiB
#include "boxes.h" #include <bits/stdc++.h> using namespace std; long long ans; long long delivery(int n, int k, int l, int p[]) { for(int i = 0; i < n; i++) { ans += min(p[i], n - p[i]) * 2; } return ans; }

Compilation message (stderr)

boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:8:31: warning: unused parameter 'k' [-Wunused-parameter]
 long long delivery(int n, int k, int l, int p[]) {
                               ^
boxes.cpp:8:38: warning: unused parameter 'l' [-Wunused-parameter]
 long long 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...