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>
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 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... |