Chef and IPC Certificates codechef November cook off challenge solution-
There were students (numbered through ) participating in the Indian Programming Camp (IPC) and they watched a total of lectures (numbered through ). For each student and each lecture , the -th student watched the -th lecture for minutes.
Additionally, for each student , we know that this student asked the question, "What is the criteria for getting a certificate?" times.
The criteria for getting a certificate is that a student must have watched at least minutes of lectures in total and they must have asked the question no more than times.
Find out how many participants are eligible for a certificate.
Input
- The first line of the input contains three space-separated integers ,