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

[백준/파이썬] 11094번 꿍 가라사대

by 현장 2022. 9. 19.

-Code

for _ in range(int(input())):
    s = list(input().split())
    if s[0] == "Simon" and s[1] == "says":
        print(end=" ")
        print(*s[2:])