ji-0630 / CodingTest

코딩테스트 연습 기록
0 stars 0 forks source link

최댓값과 최솟값 #222

Closed ji-0630 closed 1 year ago

ji-0630 commented 1 year ago

문제 설명

image

ji-0630 commented 1 year ago

나의 풀이

def solution(s):
    new = list(map(lambda x: int(x), s.split(" ")))
    answer = str(min(new)) + " " + str(max(new))

    return answer