링크

 

#!/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'miniMaxSum' function below.
#
# The function accepts INTEGER_ARRAY arr as parameter.
#

def miniMaxSum(arr):
    
    arr.sort()  
    print(sum(arr[:-1]), sum(arr[1:]))

    
if __name__ == '__main__':
    arr = list(map(int, input().rstrip().split()))
    miniMaxSum(arr)

 

'Python 문제풀이 > 프로그래머스&해커랭크' 카테고리의 다른 글

Lonely Integer (해커랭크)  (0) 2022.04.23
Time Conversion (해커랭크)  (0) 2022.04.23
기능 개발 (스택/큐)  (0) 2022.04.08
카펫 (완전탐색)  (0) 2022.04.08
소수찾기(LV.2)  (0) 2022.04.07
블로그 이미지

hjc_

୧( “̮ )୨

,