#include <iostream>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n,flag=0;
cin>>n;
while(n--){
int tmp;
cin>>tmp;
flag|=!(tmp&1);
}
if(flag)
cout<<"NO";
else cout<<"YES";
cout<<'\n';
}
return 0;
}
Comments
Post a Comment