제출 #791962

#제출 시각아이디문제언어결과실행 시간메모리
791962Josia선물상자 (IOI15_boxes)C++17
10 / 100
1 ms212 KiB
#include "boxes.h" #include <bits/stdc++.h> using namespace std; #define int int64_t long long delivery(signed N, signed K, signed L, signed p[]) { long long res = 0; for (int i = 0; i<N; i++) res += 2*min(L-p[i], p[i]); return res; }

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

boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:9:37: warning: unused parameter 'K' [-Wunused-parameter]
    9 | long long delivery(signed N, signed K, signed L, signed 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...