본문 바로가기
python-algorithm

백준 23235 The Fastest Sorting Algorithm In The World

by 무적김두칠 2022. 11. 15.

https://www.acmicpc.net/problem/23235

 

23235번: The Fastest Sorting Algorithm In The World

It is common to compare sorting algorithms based on their asymptotic speeds. Some slower algorithms like selection sort take O(N2) time to sort N items, while comparison-based sorts like merge sort can go no faster than O(N log(N)) time, under reasonable a

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
if __name__ == '__main__':
    cnt = 1
    while True:
        s =input()
        if s =='0':
            break
        else:
            print("Case %d: Sorting... done!"%(cnt))
        cnt+=1
cs

반복문을 통한 단순 출력입니다.
Just use Loop, Print. 
That's all

반응형

댓글