[GESP202409 一级] 美丽数字

Luogu
IDLGB4035
Time1000ms
Memory512MB
DifficultyP1
2024GESP
小杨有 $n$ 个正整数,他认为一个正整数是美丽数字当且仅当该正整数是 $9$ 的倍数但不是 $8$ 的倍数。 小杨想请你编写一个程序计算 $n$ 个正整数中美丽数字的数量。 ## Input 第一行包含一个整数 $n$,代表正整数个数。 第二行有 $n$ 个正整数 $a_1, a_2, \dots a_n$。 ## Output 输出一个整数,表示其中美丽数字的数量。 [samples] ## Background 对应的选择、判断题:<https://ti.luogu.com.cn/problemset/1157> ## Note ### 样例 1 解释 - $1$ 既不是 $9$ 的倍数也不是 $8$ 的倍数。 - $9$ 是 $9$ 的倍数不是 $8$ 的倍数。 - $72$ 既是 $9$ 的倍数又是 $8$ 的倍数。 ### 数据规模与约定 对全部的测试数据,保证 $1 \leq n, a_i \leq 10^5$。
Samples
Input #1
3
1 9 72
Output #1
1
API Response (JSON)
{
  "problem": {
    "name": "[GESP202409 一级] 美丽数字",
    "description": {
      "content": "小杨有 $n$ 个正整数,他认为一个正整数是美丽数字当且仅当该正整数是 $9$ 的倍数但不是 $8$ 的倍数。 小杨想请你编写一个程序计算 $n$ 个正整数中美丽数字的数量。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB4035"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "小杨有 $n$ 个正整数,他认为一个正整数是美丽数字当且仅当该正整数是 $9$ 的倍数但不是 $8$ 的倍数。\n\n小杨想请你编写一个程序计算 $n$ 个正整数中美丽数字的数量。\n\n## Input\n\n第一行包含一个整数 $n$,代表正整数个数。  \n第二行有 $n$ 个正整数 $a_1, a_2, \\dots a_n$。\n\n## Output\n\n输出一个整数,表示其中美丽数字的数量。\n\n[samp...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments