Unique Value Sum

Sometimes a total should include only the values that appear once. Write a function lone_sum that takes three numbers a, b, and c. Return the sum of only the numbers that do not match any other value; repeated values should not be included.

Примеры

Ввод
1, 2, 3
Вывод
6
Ввод
3, 2, 3
Вывод
2
Ввод
3, 3, 3
Вывод
0

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

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

Теги

math
PostgreSQLv16

Qui apparirà il risultato dell'esecuzione del codice

Visible tests
1
Input
1, 2, 3
Expected6
2
Input
3, 2, 3
Expected2
3
Input
3, 3, 3
Expected0
4
Input
9, 2, 2
Expected9
5
Input
2, 2, 9
Expected9
6
Input
1, 1, 1
Expected0
Focus radio
Paused · SomaFM · Fluid