You are viewing a single comment's thread. Return to all comments →
import sys
arr = sorted(map(int, raw_input().strip().split(' ')))
a=sum(arr)
l=len(arr)
print a-arr[l-1], a-arr[0]
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
!/bin/python
import sys
arr = sorted(map(int, raw_input().strip().split(' ')))
a=sum(arr)
l=len(arr)
print a-arr[l-1], a-arr[0]