#E. 考级202006-5:与指定数字相同的数的个数

    Type: Default 1000ms 128MiB

考级202006-5:与指定数字相同的数的个数

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.

题目描述

输出一个整数序列中与指定数字相同的数的个数。

输入格式

输入包含 2 行: 第 1 行为 N 和 m,表示整数序列的长度(N <= 100)和指定的数字, 中间用一个空格分开; 第 2 行为 N 个整数,整数之间以一个空格分开。

输出格式

输出为 N 个数中与 m 相同的数的个数。

输入数据 1

3 2

2 3 2

输出数据 1

2

数据范围与提示

一级第6轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-28 9:30
End at
2023-8-19 1:30
Duration
520 hour(s)
Host
Partic.
16