백준 10818 번 - 최소, 최대 (코틀린)
import java.util.StringTokenizer fun main(args: Array) = with(System.`in`.bufferedReader()){ val arr = ArrayList() val num = readLine().toInt() val st = StringTokenizer(readLine()) while(st.hasMoreTokens()) { arr.add(st.nextToken().toInt()) } var num_list1 = arr.sorted() //println("Contents Of an Array: "+ arr) //println("Contents Of an Array: "+ num_list1) println("${num_list1[0]} ${num_list1[n..
2022.06.06