We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Nice. Pretty much identical to mine though I don't bother with reading the number of test cases:
publicstaticvoidmain(String[]args){Scannerin=newScanner(System.in);in.nextLine();// skip num testcaseswhile(in.hasNextInt()){intn=in.nextInt();intk=in.nextInt();into=0;for(inti=0;i<n;i++)if(in.nextInt()<=0)o++;System.out.println(o>=k?"NO":"YES");}}
Angry Professor
You are viewing a single comment's thread. Return to all comments →
Nice. Pretty much identical to mine though I don't bother with reading the number of test cases: