You are viewing a single comment's thread. Return to all comments →
**#include int main(){ int t; scanf("%d\n",&t); while(t--){ int n,k,count=0; scanf("%d %d \n",&n,&k); int A[n],i; for(i=0;i if(A[i]<=0){ count++; } } printf("%s \n",(count>=k)?"NO":"YES"); } return 0; } **
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 →
**#include int main(){ int t; scanf("%d\n",&t); while(t--){ int n,k,count=0; scanf("%d %d \n",&n,&k); int A[n],i; for(i=0;i if(A[i]<=0){ count++; } } printf("%s \n",(count>=k)?"NO":"YES"); } return 0; } **