#E. 与指定数字相同的数的个数

    Type: Default 1000ms 256MiB

与指定数字相同的数的个数

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行为N和m,表示整数序列的长度(N≤100)和指定的数字, 中间用一个空格分开;

第2行为N个整数,整数之间以一个空格分开。

【输出】

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

【输入样例】

3 2
2 3 2

【输出样例】

2

【来源】

一本通在线评测

B班第五天测试

Not Attended
Status
Done
Rule
Ledo
Problem
11
Start at
2025-7-26 7:45
End at
2025-7-26 7:57
Duration
0.2 hour(s)
Host
Partic.
8