Rounded Total

In receipts, reports, and quick estimates, rounded tens can be easier to work with than exact numbers. Write a function round_sum that takes three numbers a, b, and c, rounds each one to the nearest multiple of 10, and returns the sum of the rounded values. If a number ends in 5 or more, round it up; otherwise, round it down.

Примеры

Ввод
16, 17, 18
Вывод
60
Ввод
12, 13, 14
Вывод
30
Ввод
6, 4, 4
Вывод
10

Нужно реализовать

def round_sum(a: int, b: int, c: int) -> int:

Теги

math
PostgreSQLv16

Your code output will appear here

Visible tests
1
Input
16, 17, 18
Expected60
2
Input
12, 13, 14
Expected30
3
Input
6, 4, 4
Expected10
4
Input
0, 0, 0
Expected0
5
Input
10, 20, 30
Expected60
6
Input
45, 21, 30
Expected100
Focus radio
Paused · SomaFM · Fluid