Please read the new rule regarding the restriction on the use of AI tools. ×

dear_earth's blog

By dear_earth, history, 2 years ago, In English

23A - You're Given a String... 176341384

include<bits/stdc++.h>

using namespace std; int main(){

int t;
cin>>t;
while(t--){
    int n,k;
    cin>>n>>k;
    int cnt0=0;
    int arr[n];
    for(int i=0;i<n;i++){
        cin>>arr[i];
        if(arr[i]==0){
            cnt0++;
        }
    }
    if(cnt0==n){
        cout<<"NO"<<endl;
    }
    else{
        cout<<"YES"<<endl;
    }
}

return 0; }

  • Vote: I like it
  • -37
  • Vote: I do not like it