#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
cin>>t;
while(t--)
{
int x;
cin>>x;
long long sum=0;
for(long long i = 0;i<x;i++){
long long n;
cin>>n;
sum^=n;
}
if(sum!=0){
cout<<"YES"<<endl;
}
else cout<<"NO"<<endl;
}
return 0;
}

京公网安备 11010502036488号