본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 25893번 Majestic 10

by 현장 2024. 2. 17.

-Code

arr = ["zilch", "double", "double-double", "triple-double"]
for _ in range(int(input())):
    nums = list(map(int, input().split()))
    res = 0

    for n in nums:
        if n >= 10:
            res += 1

    print(*nums)
    print(arr[res])
    print()