Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define _test int _TEST; cin>>_TEST; while(_TEST--)
- #define pb push_back
- int main()
- {
- _test
- {
- int n;
- cin>>n;
- vector<int> a(n);
- for(auto &e: a)
- cin>>e;
- int cntOdd = 0;
- for(auto e: a)
- cntOdd += (e%2);
- if(cntOdd%2)cout<<"NO\n";
- else cout<<"YES\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment