LOADING

加载过慢请开启缓存,浏览器默认开启

daily 1

2023/5/29

CF 1833C

solve()
{
    cin>>n;
    for(int i=1;i<=n;i++) cin>>w[i];
    sort(w+1,w+n+1);
    if(w[1]%2) cout<<"YES"<<endl;
    else{
        for(int i=1;i<=n;i++)
            if(w[i]%2){
                cout<<"NO"<<endl;
                return ;
            }
        cout<<"YES"<<endl;
    }
}