## 문제  

BOJ 10818 최소,최대

  

## 풀이  

배열에서 최대 최소 출력


## 코드  

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)))
view raw BOJ 10818.py hosted with ❤ by GitHub

맨위 두줄은 없어도 시간초과에 걸리지는 않는 것 같다.