본문 바로가기
코딩테스트/PYTHON

백준 10818번 파이썬 풀이

by aibattle 2023. 3. 9.
728x90
반응형

[정답]

N = int(input())

A= list (map (int,input().split()))

Max1=max(A)
Min1=min(A)

print ("{} {}".format(Min1,Max1))

[해설]

728x90
반응형

'코딩테스트 > PYTHON' 카테고리의 다른 글

백준 10810번 파이썬 풀이  (0) 2023.03.10
백준 2562번 파이썬 풀이  (0) 2023.03.09
백준 10871번 파이썬 풀이  (0) 2023.03.09
백준 10807번 파이썬 풀이  (0) 2023.03.08
백준 25314번 파이썬 풀이  (0) 2023.03.08

댓글