![[백준 알고리즘] 10818번 최소, 최대(Python3, Java)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb8qtRR%2FbtqBUUjhoJh%2FKnRbCb2TyegtyBOH50zZs1%2Fimg.png)
언어, 알고리즘 공부/백준2020. 2. 11. 23:05[백준 알고리즘] 10818번 최소, 최대(Python3, Java)
n = int(input()) a = list(map(int,input().split())) min, max = a[0], a[0] for i in range(n): if a[i] max: max = a[i] print(min, max) 출처: https://hwiyong.tistory.com/217 Case = int(input()) num_list = list(map(int, input().split())) print('{} {}'.format(min(num_list), max(num_list))) 문자열 대괄호 자리에 format 뒤의 괄호안에 있는 값을 하나씩 넣어 출력한다. import java.io.BufferedReader; import ja..