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

[백준/파이썬] 30402번 감마선을 맞은 컴퓨터

by 현장 2023. 10. 30.

-Code

res = ""
for _ in range(15):
    line = list(input().split())

    if "w" in line:
        res = "chunbae"
    elif "b" in line:
        res = "nabi"
    elif "g" in line:
        res = "yeongcheol"

print(res)