제출 #54009

#제출 시각아이디문제언어결과실행 시간메모리
54009ernestvw선물상자 (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(); }*/

컴파일 시 표준 에러 (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...