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
相關文章
相關標籤/搜索