Submission #127039

#TimeUsernameProblemLanguageResultExecution timeMemory
127039MasterdanWiring (IOI17_wiring)C++14
0 / 100
2 ms256 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...