You are viewing a single comment's thread. Return to all comments →
Meh. Way too much pointless stuff. You don't need the strip, the split parameter, and so many parentheses.
strip
split
arr = map(int, raw_input().split()) s = sum(arr) print s - max(arr), s - min(arr)
Another one:
a = sorted(map(int, input().split())) print(sum(a[:-1]), sum(a[1:]))
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 →
Meh. Way too much pointless stuff. You don't need the
strip
, thesplit
parameter, and so many parentheses.Another one: