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

[백준/파이썬] 25932번 Find the Twins

by 현장 2023. 2. 9.

-Code

t = int(input())
for i in range(t):
    nums = list(map(int, input().split()))
    Mack = True if 18 in nums else False
    Zack = True if 17 in nums else False
    print(*nums)
    if Mack and Zack:
        print("both")
    elif Mack:
        print("mack")
    elif Zack:
        print("zack")
    else:
        print("none")
    if i != t - 1:
        print()