Winning cb scholarship

how to solve this problem…tell me approach first

HINT:
it is a binary search problem
you have apply binary search on 0 to N (no of students)
and divide them into those who got waiver and who perform badly

now try with this hint

if not able to solve you can take help from this code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

if your doubt resolved plz give feedback
if not feel free to ask