BOJ - 20205 - 교수님 그림이 깨지는데요?
Updated:
import sys
def solution():
N, K = map(int, sys.stdin.readline().split())
maps = []
bitMap = [[-1 for _ in range(N*K)] for _ in range(N*K)]
for _ in range(N):
maps.append(list(map(int, sys.stdin.readline().split())))
for idx in range(N*K):
for jdx in range(N*K):
bitMap[idx][jdx] = maps[idx//K][jdx//K]
for b in bitMap:
print(*b)
solution()
https://www.acmicpc.net/problem/20205
Leave a comment