# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
597125 | Ahmadsm2005 | Wiring (IOI17_wiring) | C++14 | 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"
//#include "grader.cpp"
using namespace std;
long long min_total_length(std::vector<int> r, std::vector<int> b) {
//if(b.size()>r.size())
//swap(r,b);
swap(r,b);
long long ANS=0;
for(int i=0;i<r.size();i++){
ANS+=abs(b[min((int)b.size()-1,i)]-r[i]);
}
return ANS;
}
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... |