#B3659. QQ Group Admission Validator
QQ Group Admission Validator
QQ Group Admission Validator
In an online course offered by Luogu, a unique verification code is provided to enrolled students for joining the course QQ group. For a particular session, the verification code is given as a number \(k\). There are \(n\) applicants and the \(i\)-th applicant provides the verification code \(a_i\). As the QQ group administrator, your task is to count how many applicants have provided the correct verification code.
Input/Output Format:
The input begins with two integers \(k\) and \(n\) in a single line, where \(k\) is the correct verification code and \(n\) is the number of applicants. The following line contains \(n\) space-separated integers representing the verification codes \(a_1, a_2, \ldots, a_n\) supplied by each applicant.
The output should be a single integer indicating the number of applicants with the correct verification code.
inputFormat
The first line contains two integers \(k\) and \(n\), where \(k\) is the target code and \(n\) is the number of applicants. The second line contains \(n\) space-separated integers \(a_1, a_2, \ldots, a_n\), each representing the verification code provided by an applicant.
outputFormat
Output a single integer representing the count of applicants whose verification code matches \(k\).
sample
5 4
5 3 5 2
2