# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
104689 | promota | Wiring (IOI17_wiring) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
int min_total_length(vector<int> r,vector<int> b){
int minLen=0;
int n=r.size();
int m=b.size();
for(int j=0;j<n-1;j++){
minLen += b[0]-r[j];
}
for(int i=1;i<m;i++){
minLen += b[i]-r[n-1];
}
return minLen;
}