Submission #1034031

#TimeUsernameProblemLanguageResultExecution timeMemory
1034031ZicrusBoxes with souvenirs (IOI15_boxes)C++17
0 / 100
1 ms428 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[]) { return p[n-1] <= l/2 ? 2*p[n-1] : l; }

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...