[프로그래머스] 최댓값과 최솟값

단간단간·2024년 3월 28일
0

알고리즘 문제

목록 보기
28/106

링크: https://school.programmers.co.kr/learn/courses/30/lessons/12939

python

def solution(s: str):
    int_list = [int(i) for i in s.split()]
    big = max(int_list)
    small = min(int_list)

    return f"{small} {big}"
profile
simple is best

0개의 댓글