Winning CB Scholarship

the question explanation is not clear

hello @mahima

do u want me to explain question ? or solution explanation?

please explain the question

N -> number of students
M -> number of coupouns available
X-> number of coupons one student needs to get scholarship
Y-> number of coupon every failed student has to pay

now the objective of the problem is u need to tell maximum number of student who can get 100% scholarship.

for example if A students get 100% scholarship then number of coupons required is
A* X
so u need to check if M (already available coupon) + (N-A) * Y( coupon receivd by failed students)

A*X >= M + (N-A)*Y
u need to find the maximum value of A