C. Đếm số lần xuất hiện của số x


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 256M

Problem type

Cho mảng gồm n số nguyên và một số nguyên x. Hãy đếm số lần xuất hiện của x trong mảng.

Ràng buộc

1 ≤ n ≤ 1000

-106 ≤ a[i], x ≤ 106

Input

Dòng 1: Số nguyên n

Dòng 2: n số nguyên

Dòng 3: Số nguyên x

Output

In ra số lần xuất hiện của x trong mảng.

Ví dụ
Input:
5
1 2 3 2 4
2

Output:
2
Input:
4
5 6 7 8
9

Output:
0

Comments

There are no comments at the moment.