fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4.  
  5.  
  6.  
  7. int main()
  8. {
  9. ios_base::sync_with_stdio(false);
  10. cin.tie(NULL);
  11. ll t;
  12. scanf("%lld",&t);
  13. while(t--){
  14. ll n,x=0;
  15. scanf("%lld",&n);
  16. ll l1[n+1];
  17. for(int i=1;i<=n;i++){
  18. cin>>l1[i];
  19. if(l1[i]%2==0)x=3;
  20. }
  21. if(x==3)cout<<"NO\n";
  22. else cout<<"YES\n";
  23. }
  24. }
  25.  
Runtime error #stdin #stdout 0s 4384KB
stdin
Standard input is empty
stdout
Standard output is empty