You are viewing a single comment's thread. Return to all comments →
int t,c=0,i,k,j,n; cin>>t; if(t>=1&&t<=10) { for(i=1;i<=t;i++) { c=0; cin>>n>>k; if((n>=1)&&(n<=1000)&&(n>=k)) { int ar[n]; for(j=0;j>ar[j];
if(ar[j]<=0) {c=c+1;} } if(c>=k) {cout<<"NO"<<endl;} if(c<k) {cout<<"YES"<<endl;} }}} try my code
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
int t,c=0,i,k,j,n; cin>>t; if(t>=1&&t<=10) { for(i=1;i<=t;i++) { c=0; cin>>n>>k; if((n>=1)&&(n<=1000)&&(n>=k)) { int ar[n]; for(j=0;j>ar[j];