题目:
题意:
两个序列都有 n n n个不同的元素,当且仅当 a i x o r b j = c ( c ϵ a o r b ) a_i\ xor\ b_j=c(c\ \epsilon\ a\ or\ b) ai xor bj=c(c ϵ a or b)
分析:
若存在满足题意的 a 、 b 、 c a、b、c a、b、c,那么根据异或的性质,我们很明显可以调换 t a ta ta的顺序,所以产生的贡献就一定是偶数个
代码:
#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<queue>
#include<algorithm>
#include<cmath>
#define LL long long
using namespace std;
inline LL read() {
LL d=0,f=1;char s=getchar();
while(s<'0'||s>'9'){if(s=='-')f=-1; s=getchar();}
while(s>='0'&&s<='9'){d=d*10+s-'0'; s=getchar();}
return d*f;
}
int main()
{
// freopen("1.in","r",stdin);
int t=read();
for(int i=1;i<=t;i++) printf("0!\n");
return 0;
}