列表2:统计数字
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,表示数字个数;第二行输入 n 个整数;第三行输入目标数字 x。统计 x 在列表中出现多少次并输出。
输入格式
第一行:n
第二行:n 个整数
第三行:整数 x
输出格式
一行一个整数,代表出现次数。
input1
7
66 89 72 95 89 78 89
89
output1
3
Python暑假测试(袁)0901
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2026-7-17 9:15
- End at
- 2026-7-17 11:15
- Duration
- 2 hour(s)
- Host
- Partic.
- 4