백준 12606번: Reverse Words (Large) #Python

ColorlessDia·2025년 1월 2일

algorithm/baekjoon

목록 보기
410/807
import sys

N = int(sys.stdin.readline())

for n in range(1, N + 1):
    print(f'Case #{n}: {' '.join(sys.stdin.readline().rstrip().split()[::-1])}')

0개의 댓글