#include<bits/stdc++.h>
using namespace std;
int num[1000005];
int main()
{
int n,x,temp;
long long ans=0;
cin>>n>>x;
while(n--)
{
cin>>temp;
ans+=num[temp^x];
num[temp]++;
}
cout<<ans<<endl;
return 0;
}
742 B - Arpa’s obvious problem and Mehrdad’s terrible solution codeforces
最新推荐文章于 2017-07-22 16:39:24 发布