#A. 二级202203-1温度统计

    Type: Default 1000ms 128MiB

二级202203-1温度统计

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

现有一段时间的温度数据,请统计指定温度出现的次数。

输入

第一行一个整数 n,表示温度数据的个数。(0 < n ≤ 200) 第二行 n 个整数,以空格分隔,每个整数表示一个温度,温度的范围大于等于 0,小于等于 40。 第三行一个整数,表示需要查询的温度 t。(0 ≤ t ≤ 40)

输出

输出一个整数,表示温度 t 出现的次数。

样例输入

10

18 19 21 17 20 18 21 21 22 21

21

样例输出

4

二级第8轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-8-2 9:30
End at
2023-8-23 5:30
Duration
500 hour(s)
Host
Partic.
12