2750번 '수 정렬하기'
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859let inputCount = Int(readLine()!)!var inputs = [Int]()for _ in 1 ... inputCount{ inputs.append(Int(readLine()!)!)}//선택정렬func selectionSort(array: inout [Int]){ for i in stride(from: array.count - 1, through: 1, by: -1){ var maxIndex = i for j in 0 ..
Algorithm/Baekjoon Online Judge
2018. 2. 22. 11:25