Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits\stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- cin >> t;
- while(t--)
- {
- int n;
- cin >> n;
- int a[2*n], i, cnt = 0;
- for(i = 0; i < 2*n; i++)
- {
- cin >> a[i];
- if(a[i] % 2 == 1) cnt++;
- }
- //cout << "cnt " << cnt << endl;
- if(cnt == n) printf("Yes\n");
- else printf("No\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement