Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem3046--标记练习-数字7的个数
3046: 标记练习-数字7的个数
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
76
Solved:
49
[
Status
] [
Submit
] [Creator:
]
Description
输入一个数字n,然后输入n个数。请你查找数组中的数字7,如果存在7,请输出一共有多少个7。如果没有7,则输出no。
Input
输入为2行:
第一行为n,表示输入的数据个数。(n<100)
第二行为n个数。
Output
如果存在7,输出仅一个数,为所有数字7的个数。
否则输出no
Sample Input
Copy
10 7 13 25 4 7 7 32 7 56 7
Sample Output
Copy
5
HINT
样例输入2:
10
8 13 25 4 9 17 32 71 56 22
样例输出2:
no
Source/Category
基础B