본문 바로가기

PROGRAMMING/ALGORITHM

[백준] 9093번 Python

import sys

T = int(sys.stdin.readline())
for _ in range(T) :
    input = sys.stdin.readline()
    spInput = list(input.split())

    output = []
    for i in spInput :
        output.append(i[::-1])

    print(*output)

코드 길이도 그렇고 효율/시간이 넘사

'PROGRAMMING > ALGORITHM' 카테고리의 다른 글

[백준] 1158번 JAVA 요세푸스  (0) 2021.03.31
[백준] 1406번 JAVA  (0) 2021.03.30
[백준] 9012번 JAVA  (0) 2021.03.29
[백준] 9093번 JAVA  (0) 2021.03.28
[알고리즘] 빅 오 표기법  (0) 2021.03.17