➽ Problem:-
https://www.hackerrank.com/challenges/mini-max-sum/problem
➽ Solution:-
import math
import os
import
random
import re
import sys
arr =
input().strip().split(' ')
arr.sort()
for i in
range(0, len(arr)):
arr[i] = int(arr[i])
print(sum(arr[:4]),sum(arr[1:]))
0 Comments
Please do not enter any spam link in the comment section.