[Baekjoon] #23235 (The Fastest Sorting Algorithm In The World)

REi·2024년 9월 10일

Baekjoon 브론즈 V

목록 보기
67/72

> 문제


> 핵심 내용

  • 문자열 포맷팅 % 사용
    - %d - %count
    - 앞에서 사용한 %d를 count 변수의 값으로 대체하라는 의미

> 결과

> 결과 코드

# 백준 #23235 (The Fastest Sorting Algorithm In The World)

# 0이 들어올때까지 무한 반복
condition = True
count = 0
while condition :
    Numbers_List = list(map(int,input().split()))
    if Numbers_List[0] == 0 :
        condition = False
    else :
        count += 1
        print("Case %d: Sorting... done!"% count)

0개의 댓글