
[PYTHON/파이썬] 백준 BAEKJOON 10818번 최소, 최대
·알고리즘
문제 링크https://www.acmicpc.net/problem/10818 문제 풀이list 항목에서 최소값은 min, 최대값은 max 를 사용하면 출력할 수 있습니다.코드N = int(input())lst = list(map(int, input().split()))print(min(lst), max(lst))