D题意:
将 长度为 N 的数组 划分为集合 有多少种不同的 异或和
这道题做出来和bell 数没什么关系,如果要证明复杂度那么就需要bell 数
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> PII;
#define int long long
int n;
unordered_set<int>se;
int a[14];
int b[14];// 存放已经的划分集合
D题意:
将 长度为 N 的数组 划分为集合 有多少种不同的 异或和
这道题做出来和bell 数没什么关系,如果要证明复杂度那么就需要bell 数
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> PII;
#define int long long
int n;
unordered_set<int>se;
int a[14];
int b[14];// 存放已经的划分集合