生日月活动
No testdata at current.
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 个同学,每个同学都有一个生日,班级举办生日月活动,老师想快速的知道这个月有几个同学一起过生日,该怎么做呢?
输入输出说明
输入说明
第 1 行有一个整数 n (n≤1000),代表学生的人数。
第 2 行有 n 个整数,数字之间用空格隔开,这 n 个数都是 100000 范围内的正整数数,代表学生的生日月份。
第 3 行有一个整数整数 x,代表当前月份。
输出说明
输出当月过生日的同学人数。
题目样例
样例输入
10
2 8 1 2 3 3 6 1 1 10
3
样例输出
2
数据范围
语法综合测试
- Status
- Done
- Rule
- XCPC
- Problem
- 11
- Start at
- 2025-8-18 14:00
- End at
- 2025-8-18 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 16