T = int(input())
for _ in range(T):
word = list(input().split())
word_reverse = []
for i in word:
word_reverse.append(i[::-1])
print(*word_reverse)
'개발 > Algorithm' 카테고리의 다른 글
[PS] 코딩테스트에 나오는 완전탐색 (0) | 2023.07.31 |
---|---|
[프로그래머스] 요격 시스템 (Java 풀이) (0) | 2023.04.16 |
[Python] 백준 14720번 우유 축제 (0) | 2021.11.15 |
[Python] 백준 15650번 N과 M (2) (0) | 2021.11.15 |
[Python] 백준 15649번 N과 M (1) (0) | 2021.11.15 |
댓글