题目链接 题意:给你 n n n个数,求这些数能够异或出的最大值是多少? 思路: 异或线性基的入门题。 推荐:优秀的学习资料 求这 n n n个数的异或线性基,由性质,线性基里所有的数的异或和就是所需要求的最大值。 至于构建线性基的方法,类似于高斯消元的思想,还是很好理解的~ 代码: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; typedef long long ll; const int A = 100