-
-
Save souradeep99/81f243f58825a49a12b9f90e354d71bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for tc in xrange(input()): | |
N = input() | |
A = map(int, raw_input().split()) | |
A = [i & 1 for i in A] | |
print "NO" if 0 in A else "YES" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment