提交时间:2022-08-03 14:36:11

运行 ID: 56778

#include<bits/stdc++.h> using namespace std; int n,a[10010],b[10010],x,y; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]%2==0) x++; } for(int j=1;j<=n;j++){ cin>>b[j]; if(b[j]%2!=0) y++; } if(x>y) cout<<"NO"; else cout<<"YES"; return 0; }