5545: 【GESP202503 一级】 四舍五入
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:1
Solved:1
Description
四舍五入是一种常见的近似计算方法。现在,给定 $n$ 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,$43$ 四舍五入后为 $40$,$58$ 四舍五入后为 $60$。
Input
共 $n+1$ 行,第一行,一个整数 $n$,表示接下来输入的整数个数。
接下来 $n$ 行,每行一个整数 $a_1, \cdots, a_n$,表示需要四舍五入的整数。
接下来 $n$ 行,每行一个整数 $a_1, \cdots, a_n$,表示需要四舍五入的整数。
Output
$n$ 行,每行一个整数,表示每个整数四舍五入后的结果。
Sample Input Copy
5
43
58
25
67
90
Sample Output Copy
40
60
30
70
90
HINT
对于所有测试点,保证 $1\leq n\leq 100$,$1\leq a_i\leq 10000$。