Submission #133674

#TimeUsernameProblemLanguageResultExecution timeMemory
133674dvdg6566Wiring (IOI17_wiring)C++14
13 / 100
37 ms3836 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; #include "wiring.h" ll ans = 0; long long min_total_length(std::vector<int> r, std::vector<int> b) { for (auto i : r){ ans += (r.back()-i); } for (auto i : b){ ans += (i-b[0]); } ans += (b[0] - r.back())*max(r.size(),b.size()); return ans; }
#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...