Scar头像

C++ 并查集模板

#设置Tag是个好习惯 #include <iostream> #include <algorithm> #define MAXN 1000 #define debug(x) (cout << #x&...

Scar头像

C++ 二进制枚举模板(求n的所有子集)

#设置Tag是个好习惯 #include <bits/stdc++.h> using namespace std; int main() {     int n;    &nbsp...