Untitled
Anonymous
python
11/26/2021 1:49 PM
228 B
36
Indexable
lst = map(int, input().split())
lst = sorted(lst)
d = 0
for i in range(len(lst)-1):
if lst[i] != lst[i+1]:
d+=lst[i]
d+=lst[-1]
print(lst)
print(d)Editor is loading...