Submission #1068390

#TimeUsernameProblemLanguageResultExecution timeMemory
1068390edogawa_somethingWiring (IOI17_wiring)C++17
13 / 100
16 ms3932 KiB
#include "wiring.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> pii; typedef vector<ll> vii; #define F first #define S second #define all(v) v.begin(),v.end() #define pb push_back long long min_total_length(std::vector<int> r, std::vector<int> b) { long long ans=0; for(auto it:r) { ans-=it; } for(auto it:b) ans+=it; if(b.size()>r.size()) ans-=r.back()*(b.size()-r.size()); else ans+=b.front()*(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...