Type: RemoteJudge 1000ms 512MiB

[GESP202503 一级] 四舍五入

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.

题目描述

四舍五入是一种常见的近似计算方法。现在,给定 nn 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,4343 四舍五入后为 40405858 四舍五入后为 6060

输入格式

n+1n+1 行,第一行,一个整数 nn,表示接下来输入的整数个数。

接下来 nn 行,每行一个整数 a1,,ana_1, \cdots, a_n,表示需要四舍五入的整数。

输出格式

nn 行,每行一个整数,表示每个整数四舍五入后的结果。

5
43
58
25
67
90
40
60
30
70
90

提示

对于所有测试点,保证 1n1001\leq n\leq 1001ai100001\leq a_i\leq 10000

GESP一级

Not Claimed
Status
Done
Problem
22
Open Since
2025-8-12 0:00
Deadline
2025-9-30 23:59
Extension
24 hour(s)