与指定数字相同的数的个数
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.
【题目描述】
输出一个整数序列中与指定数字相同的数的个数。
输入包含 行:第 行为 和 ,表示整数序列的长度()和指定的数字;第 行为 个整数,整数之间以一个空格分开。输出为 个数中与 相同的数的个数。
【输入】
第 行为 和 ,表示整数序列的长度()和指定的数字;第 行为 个整数,整数之间以一个空格分开。输出为 个数中与 相同的数的个数。
【输出】
输出为 个数中与 相同的数的个数。
【输入样例】
3 2
2 3 2
【输出样例】
2
【来源】
一本通在线评测
初一期末考 入门组
- 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