Xinjiang Provincial Collegiate Programming Contest 2021 D. Cocktail with Swap: 并查集
发布时间
阅读量:
阅读量
2021 Xinjiang Provincial Collegiate Programming Contest D. cocktail with swap
#include<bits/stdc++.h>
#include <unordered_map>
using namespace std;
template<class...Args>
void debug(Args... args) {//Parameter pack
auto tmp = { (cout << args << ' ', 0)... };
cout << "\n";
}
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll>pll;
typedef pair<int, int>pii;
const ll N = 1e5 + 5;
const ll INF = 0x7fffffff;
int f[N], cnt[N][26];
int main() {
ios_base::sync_w
全部评论 (0)
还没有任何评论哟~
