[GESP202503 一级] 四舍五入

Luogu
IDLGB4258
Time1000ms
Memory512MB
DifficultyP1
2025循环结构GESP
四舍五入是一种常见的近似计算方法。现在,给定 $n$ 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,$43$ 四舍五入后为 $40$,$58$ 四舍五入后为 $60$。 ## Input 共 $n+1$ 行,第一行,一个整数 $n$,表示接下来输入的整数个数。 接下来 $n$ 行,每行一个整数 $a_1, \cdots, a_n$,表示需要四舍五入的整数。 ## Output $n$ 行,每行一个整数,表示每个整数四舍五入后的结果。 [samples] ## Background 对应的选择、判断题:<https://ti.luogu.com.cn/problemset/1173> ## Note 对于所有测试点,保证 $1\leq n\leq 100$,$1\leq a_i\leq 10000$。
Samples
Input #1
5
43
58
25
67
90
Output #1
40
60
30
70
90
API Response (JSON)
{
  "problem": {
    "name": "[GESP202503 一级] 四舍五入",
    "description": {
      "content": "四舍五入是一种常见的近似计算方法。现在,给定 $n$ 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,$43$ 四舍五入后为 $40$,$58$ 四舍五入后为 $60$。",
      "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": "LGB4258"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "四舍五入是一种常见的近似计算方法。现在,给定 $n$ 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,$43$ 四舍五入后为 $40$,$58$ 四舍五入后为 $60$。\n\n## Input\n\n共 $n+1$ 行,第一行,一个整数 $n$,表示接下来输入的整数个数。\n\n接下来 $n$ 行,每行一个整数 $a_1, \\cdots, a_n$,表示需要四舍五入的整数。\n\n## Output\n\n...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments