# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
68188 | mirbek01 | Wiring (IOI17_wiring) | C++17 | 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.
#include "wiring.h"
#include <bits/stdc++.h>
using namespace std;
long long min_total_length(vector<int> r, vector<int> b) {
long long ans = 0;
int n = (int)(r.size());
int m = (int)(b.size());
for(int i = 0; i < n; i ++)
ans += b[0] - a[i];
for(int i = 0; i < m; i ++)
ans += b[i] - a[n - 1];
return ans;
}