# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
738413 | Toxtaq | Wiring (IOI17_wiring) | C++17 | 1 ms | 212 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<bits/stdc++.h>
using namespace std;
/// Sub 2
long long min_total_length(vector<int>r, vector<int>b){
long long sum = 0;
for(int i : r){
sum += abs(i - b[0]);
}
for(int i = 1;i < b.size();++i){
sum += abs(r.back() - b[i]);
}
return sum;
}
//int main()
//{
// int n, m;
// cin >> n >> m;
// vector<int>v(n), l(m);
// for(int i = 0;i < n;++i){
// cin >> v[i];
// }
// for(int i = 0;i < m;++i){
// cin >> l[i];
// }
// cout << min_total_length(v, l);
//}
Compilation message (stderr)
# | 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... |