관리 메뉴

솜씨좋은장씨

[BaekJoon] 23235번 : The Fastest Sorting Algorithm In The World (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 23235번 : The Fastest Sorting Algorithm In The World (Python)

솜씨좋은장씨 2022. 11. 5. 12:11
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 The Fastest Sorting Algorithm In The World 입니다.

 

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

🧑🏻‍💻 코드 ( Solution )

def the_fastest_sorting_algorithm_in_the_world(case_list):
    for case_num, case in enumerate(case_list):
        print(f"Case {case_num + 1}: Sorting... done!")
        

if __name__ == "__main__":
    case_list = []
    
    while True:
        case = input()
        
        if case == "0":
            break
        
        case_list.append(list(map(int, case.split())))
        
    the_fastest_sorting_algorithm_in_the_world(case_list=case_list)
 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

Comments