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

    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.

【题目描述】

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

输入包含 22 行:第 11 行为 NNmm,表示整数序列的长度(N100N\leq 100)和指定的数字;第 22 行为 NN 个整数,整数之间以一个空格分开。输出为 NN 个数中与 mm 相同的数的个数。

【输入】

11 行为 NNmm,表示整数序列的长度(N100N\leq 100)和指定的数字;第 22 行为 NN 个整数,整数之间以一个空格分开。输出为 NN 个数中与 mm 相同的数的个数。

【输出】

输出为 NN 个数中与 mm 相同的数的个数。

【输入样例】

3 2
2 3 2

【输出样例】

2

【来源】

一本通在线评测

初一期末考 入门组

Not Attended
Status
Done
Rule
IOI
Problem
8
Start at
2026-1-16 10:30
End at
2026-1-16 12:21
Duration
1.9 hour(s)
Host
Partic.
39