Submission #54009

#TimeUsernameProblemLanguageResultExecution timeMemory
54009ernestvwBoxes with souvenirs (IOI15_boxes)C++11
0 / 100
2 ms376 KiB
#include <bits/stdc++.h> using namespace std; //#define int long long void fast_io() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int n, k, l; vector<int> P; int delivery(int N, int K, int L, int* positions) { n = N, k = K, l = L; if(k == n) { return min(L, min(2*positions[n-1], 2*(L+1-positions[0]))); } } /* signed main() { fast_io(); }*/

Compilation message (stderr)

boxes.cpp: In function 'int delivery(int, int, int, int*)':
boxes.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#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...