与指定数字相同的数的个数

Luogu
IDLGB2087
Time1000ms
Memory128MB
DifficultyP1
循环结构
输出一个整数序列中与指定数字相同的数的个数。 ## Input 输入包含三行: 第一行为 $n$,表示整数序列的长度($n\le100$); 第二行为 $n$ 个整数,整数之间以一个空格分开; 第三行包含一个整数,为指定的整数 $m$。 ## Output 输出为 $n$ 个数中与 $m$ 相同的数的个数。 [samples]
Samples
Input #1
3
2 3 2
2
Output #1
2
API Response (JSON)
{
  "problem": {
    "name": "与指定数字相同的数的个数",
    "description": {
      "content": "输出一个整数序列中与指定数字相同的数的个数。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2087"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "输出一个整数序列中与指定数字相同的数的个数。\n\n## Input\n\n输入包含三行:\n\n第一行为 $n$,表示整数序列的长度($n\\le100$);\n\n第二行为 $n$ 个整数,整数之间以一个空格分开;\n\n第三行包含一个整数,为指定的整数 $m$。 \n\n## Output\n\n输出为 $n$ 个数中与 $m$ 相同的数的个数。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments