## 문제
BOJ 10818 최소,최대
## 풀이
배열에서 최대 최소 출력
## 코드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
input = sys.stdin.readline | |
tmp_n = input() | |
tmp_list = list(map(int,input().split())) | |
print(str(min(tmp_list)) + ' ' + str(max(tmp_list))) |
맨위 두줄은 없어도 시간초과에 걸리지는 않는 것 같다.
0 댓글