Submission #671232

#TimeUsernameProblemLanguageResultExecution timeMemory
671232coding_snorlaxWiring (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...