← Problem book: C
Lesson 68 of 96 · 10 XP
How many times it occurs
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
The first line contains the count of numbers n (1 ≤ n ≤ 100), the second — the n integers themselves, separated by spaces.
The third line contains a number x. Print how many times x occurs among the numbers.
Example
Input:
5
1 2 1 3 1
1
Output:
3
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.