본문 바로가기
python-algorithm

[백준] 20205

by 무적김두칠 2021. 2. 8.

1
2
3
4
5
6
7
8
9
10
import sys
n,k=map(int, sys.stdin.readline().split())
for i in range(n):
    ans=[]
    tmp=list(map(int, sys.stdin.readline().split()))
    for j in range(len(tmp)):
        for _ in range(k):
          ans.append(tmp[j])
    for j in range(k):
        print(*ans)
cs

 

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 1037  (0) 2021.02.08
[백준] 20362  (0) 2021.02.08
[백준] 20154  (0) 2021.02.08
[백준] 20113  (0) 2021.02.08
[백준] 20001  (0) 2021.02.08

댓글