You are viewing a single comment's thread. Return to all comments →
arr = sorted(list(map(int, input().split())))
print(sum(arr[:4]), sum(arr[1:]))
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
arr = sorted(list(map(int, input().split())))
print(sum(arr[:4]), sum(arr[1:]))