제출 #671232

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