-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()
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 5358번 Football Team (0) | 2023.02.12 |
---|---|
[백준/파이썬] 27213번 Boundary Cells (0) | 2023.02.10 |
[백준/파이썬] 27389번 Metronome (0) | 2023.02.08 |
[백준/파이썬] 27433번 팩토리얼 2 (0) | 2023.02.07 |
[백준/파이썬] 26350번 Good Coin Denomination (0) | 2023.02.06 |