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>
#define MAX 1000000000000000000
#define MIN -1
#define pb push_back
#define mp make_pair
#define all(a) a.begin (), a.end()
using namespace std;
typedef vector <int> vi;
typedef long long int ll;
long long min_total_length(vector<int> r,vector<int> b) {
ll s=0;
int a=r.size ();
for(int i=0;i<a;i++){
s+=b[0]-r[i];
}
int t=b.size ();
for(int i=1;i<t;i++){
s+=b[i]-r[a-1];
}
return s;
}
# | 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... |