#C. [GESP202409 一级] 2. 美丽数字

    Type: Default 1000ms 256MiB

[GESP202409 一级] 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 个正整数,他认为一个正整数是美丽数字当且仅当该正整数是 9 的倍数但不是 8 的倍数。 小杨想请你编写一个程序计算 n 个正整数中美丽数字的数量。

输入格式

第一行包含一个正整数 n,代表正整数个数。

第二行包含 n 个正整数 a1,a2,...,ana_1,a_2,...,a_n

输出格式

输出一个整数,代表其中美丽数字的数量。

样例

3
1
9
72
1

提示

1n1051≤n≤10^5

1ai1051≤a_i≤10^5

C++ GESP 2024年9月 一级

Not Attended
Status
Done
Rule
OI
Problem
3
Start at
2024-9-29 18:30
End at
2024-10-8 2:30
Duration
200 hour(s)
Host
Partic.
41