Submission #1051848

#TimeUsernameProblemLanguageResultExecution timeMemory
1051848UnforgettableplWiring (IOI17_wiring)C++17
0 / 100
0 ms348 KiB
#include "wiring.h" #include <bits/stdc++.h> using namespace std; long long min_total_length(vector<int> r, vector<int> b) { long long ans = 0; for(int&i:b)ans+=i-r.back(); for(int&i:r)ans+=b.front()-i; return ans-b.front()+r.back(); }
#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...