[프로그래머스] 최댓값과 최솟값
map을 사용하여 반복분 사용하지 않기!
파이썬
def solution(s):
res = list(map(int, s.split(' ')))
return str(min(res)) + " " + str(max(res))
map을 사용하여 반복분 사용하지 않기!
def solution(s):
res = list(map(int, s.split(' ')))
return str(min(res)) + " " + str(max(res))
댓글남기기