This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
long long min_total_length(std::vector<int> r,std::vector<int> b){
long long 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;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |