제출 #630683

#제출 시각아이디문제언어결과실행 시간메모리
630683samed전선 연결 (IOI17_wiring)C++14
0 / 100
0 ms212 KiB
#include "wiring.h" #include<bits/stdc++.h> using namespace std; long long min_total_length(std::vector<int> a, std::vector<int> b) { long long answer = 0; int n = a.size(); int m = b.size(); long long k = a[0]; for(int i=0;i<m;i++) { answer += k - b[i]; } for(int i=1;i<n;i++) { answer += a[i] - k; } return answer; }
#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...