BOJ/백준-4470-python

cosmos·2022년 9월 2일
0
post-thumbnail

문제

코드

# https://www.acmicpc.net/problem/4470
# boj, 4470: 줄번호, python3
def solve(index: int, word: str) -> str:
    return f'{index}. {word}'

if __name__ == '__main__':
    n = int(input())

    for index in range(1, n+1):
        word = str(input())

        print(solve(index, word))

결과

출처 & 깃허브

boj 4470
github

0개의 댓글