Submission #232113

#TimeUsernameProblemLanguageResultExecution timeMemory
232113triple_faultWiring (IOI17_wiring)C++14
13 / 100
39 ms3960 KiB
#include "wiring.h" #define ll long long using namespace std; ll min_total_length(vector<int> r, vector<int> b) { ll ret = 0; ll n = (ll)r.size(), m = (ll)b.size(); for (ll i = 0; i < m; ++i) ret += b[i] - r[n - 1]; for (ll i = 0; i < (n - 1); ++i) ret += r[n - 1] - r[i]; ll dif = n - m; for (ll i = 0; i < dif; ++i) ret += b[0] - r[n - 1]; return ret; }
#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...