Submission #1060223

#TimeUsernameProblemLanguageResultExecution timeMemory
1060223ZicrusWiring (IOI17_wiring)C++17
0 / 100
0 ms432 KiB
#include <bits/stdc++.h> #include "wiring.h" using namespace std; typedef long long ll; ll min_total_length(vector<int> r, vector<int> b) { ll n = r.size(), m = b.size(); return min(n, m) * min(n, m) + max(n, m) * (max(n, m)+1) / 2 - min(n, m) * (min(n, m)+1) / 2; }
#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...