Codeforces Round #503 C. Elections

枚举2~m的最大票数,对于枚举的每一个票数i,能够用优先队列以最小的代价构造出1号的胜局,而后在全部最小代价中取最小值便可node #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 3010; const ll INF = 1e16; vector<int> v[maxn]; v
相关文章
相关标签/搜索