최대 1 분 소요

1️⃣ 문제

문제 링크 : https://www.acmicpc.net/problem/9093


FireShot Capture 001 - 9093번_ 단어 뒤집기 - www acmicpc net


2️⃣ 코드

import sys

num = int(sys.stdin.readline())
while num>0:
    str = list(sys.stdin.readline().split())
    for i in str:
        print(i[::-1],end=' ')
    print('')
    num-=1

댓글남기기