제출 #671758

#제출 시각아이디문제언어결과실행 시간메모리
671758mseebacher선물상자 (IOI15_boxes)C++17
0 / 100
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef vector<int> vi; ll sum = 0; ll delivery(int N, int K, int L, int pos[]){ for(int i = 0;i<N;i++){ if(pos[i] > L/2) pos[i]-= L/2; sum += 2*pos[i]; } return sum; }

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

boxes.cpp: In function 'll delivery(int, int, int, int*)':
boxes.cpp:9:24: warning: unused parameter 'K' [-Wunused-parameter]
    9 | ll delivery(int N, int K, int L, int pos[]){
      |                    ~~~~^
#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...