Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57389 老师 比较奇偶数个数 C++ Accepted 100 0 MS 248 KB 264 2022-08-05 16:00:52

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int n; int main(){ while(cin>>n){ int k=0,j=0; for(int i=1;i<=n;i++){ int t; cin>>t; if(t%2==0) k++; else j++; } if(k>j) cout<<"NO"<<endl; else cout<<"YES"<<endl; } return 0; }


Judgement Protocol: