#3216. 列表2:统计数字
列表2:统计数字
题目描述
第一行输入整数 n,表示数字个数;第二行输入 n 个整数;第三行输入目标数字 x。统计 x 在列表中出现多少次并输出。
输入格式
第一行:n
第二行:n 个整数
第三行:整数 x
输出格式
一行一个整数,代表出现次数。
input1
7
66 89 72 95 89 78 89
89
output1
3
Statistics
Related
In following contests:
第一行输入整数 n,表示数字个数;第二行输入 n 个整数;第三行输入目标数字 x。统计 x 在列表中出现多少次并输出。
第一行:n
第二行:n 个整数
第三行:整数 x
一行一个整数,代表出现次数。
input1
7
66 89 72 95 89 78 89
89
output1
3
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.