제출 #133674

#제출 시각아이디문제언어결과실행 시간메모리
133674dvdg6566전선 연결 (IOI17_wiring)C++14
13 / 100
37 ms3836 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; #include "wiring.h" ll ans = 0; long long min_total_length(std::vector<int> r, std::vector<int> b) { for (auto i : r){ ans += (r.back()-i); } for (auto i : b){ ans += (i-b[0]); } ans += (b[0] - r.back())*max(r.size(),b.size()); return ans; }
#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...