#include<stdio.h> int main() { int i,j,k,l,t,n,h,x; scanf("%d",&t); while(t--) { scanf("%d",&n); scanf("%d",&h); x=0; k=h%2; for(i=1;i<n;i++) { scanf("%d",&h); if(h%2!=k) x=1; } if(x==1) printf("no\n"); if(x==0) printf("yes\n"); } }
Copyright @ 2024 NWU_ACM Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster