Submission #630683

#TimeUsernameProblemLanguageResultExecution timeMemory
630683samedWiring (IOI17_wiring)C++14
0 / 100
0 ms212 KiB
#include "wiring.h" #include<bits/stdc++.h> using namespace std; long long min_total_length(std::vector<int> a, std::vector<int> b) { long long answer = 0; int n = a.size(); int m = b.size(); long long k = a[0]; for(int i=0;i<m;i++) { answer += k - b[i]; } for(int i=1;i<n;i++) { answer += a[i] - k; } return answer; }
#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...