-
[브론즈 Ⅴ] 23235번 :: The Fastest Sorting Algorithm In The World / Java백준/브론즈 2023. 2. 22. 16:20
문제
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
코드
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int begin = 1; while(true) { String str = scan.nextLine(); if(str.equals("0")) break; System.out.println("Case " + begin + ": Sorting... done!"); begin++; } scan.close(); } }
'백준 > 브론즈' 카테고리의 다른 글
[브론즈 Ⅴ] 25238번 :: 가희와 방어율 무시 / Java (0) 2023.02.23 [브론즈 Ⅴ] 24736번 :: Football Scoring / Java (0) 2023.02.23 [브론즈 Ⅴ] 16099번 :: Larger Sport Facility / Java (0) 2023.02.22 [브론즈 Ⅴ] 11718번 :: 그대로 출력하기 / Java (0) 2023.02.22 [브론즈 Ⅴ] 10872번 :: 팩토리얼 / Java (0) 2023.02.22