제출 #356470

#제출 시각아이디문제언어결과실행 시간메모리
356470leinad2선물상자 (IOI15_boxes)C++17
10 / 100
1 ms364 KiB
#include "boxes.h" #include<bits/stdc++.h> using namespace std; long long i, n, k, l, A[1000010]; long long delivery(int N, int K, int L, int p[]) { n=N;k=K;l=L; for(i=0;i<n;i++)A[i]=p[i]; if(k==1) { long long ans=0; for(i=0;i<n;i++) { ans+=(min(A[i], l-A[i])*2); } return ans; } return 0; }
#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...