제출 #238778

#제출 시각아이디문제언어결과실행 시간메모리
238778lakshith_선물상자 (IOI15_boxes)C++14
10 / 100
5 ms384 KiB
#include <bits/stdc++.h> #define ll long long using namespace std; inline void io_setup(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } ll delivery(int n,int k,int l,int positions[]){ ll ans = 0; for(int i=0;i<n;i++){ ans += 2*min(positions[i],l-positions[i]); } return ans; } // int main(){ // io_setup(); // cou // }

컴파일 시 표준 에러 (stderr) 메시지

boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:12:23: warning: unused parameter 'k' [-Wunused-parameter]
 ll delivery(int n,int k,int l,int positions[]){
                       ^
#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...