제출 #791961

#제출 시각아이디문제언어결과실행 시간메모리
791961Josia선물상자 (IOI15_boxes)C++17
0 / 100
0 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(N-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[]) {
      |                              ~~~~~~~^
boxes.cpp:9:47: warning: unused parameter 'L' [-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...