Winning CB scholarship

explain is possible function, how to check is it possible for mid to get scholarship or no

Hello @mohitsharmakosi2001 have you seen the editorial for this?

@mohitsharmakosi2001 see this:
the expression in the ispossible will go like this:
as we are finding the mis and with mid we are checking if this much number of students can be assigned with 100 %scholarship?
mid*(no of coupons to get 100% scholarship) <=(coupons we have) + total students -(students whom we have given scholarship)*(no of coupons student will give if he fails) .
try to understand this expression i have written in layman term.

https://ide.codingblocks.com/s/447610why it is not passing all the test cases?

@mohitsharmakosi2001 check the link there is no code in this;
please share it again by saving.

whats wrong in this code

ok got it , thank you so much

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.