728x90
반응형
입력앞에 숫자만 붙여서 그대로 출력해주면 된다.
format을 사용하자!
for i in range(int(input())):
print('{0}. {1}'.format(i+1, input()))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 4673번 셀프 넘버(python) (0) | 2020.02.12 |
---|---|
백준 알고리즘 4504번 배수 찾기(python) (0) | 2020.02.12 |
백준 알고리즘 4344번 평균은 넘겠지(python) (0) | 2020.02.11 |
백준 알고리즘 4153번 직각삼각형(python) (0) | 2020.02.11 |
백준 알고리즘 3076번 상근이의 체스판(python) (0) | 2020.02.11 |