2171: 【一维数组基础】数组元素X的个数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:120 Solved:110

Description

给你m个整数,查找其中有无值为x的数,输出x一共有几个.

Input

第一行一个整数m:数的个数 ( 0 ≤ m ≤ 100 )

第二行m个整数(空格隔开)( 这些数在 0-999999范围内 )

第三行为要查找的数x

Output

一个整数,表示x的个数。

Sample Input Copy

7
10 21 3 3 5 3 7
3

Sample Output Copy

3

Source/Category