본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 6765번 Icon Scaling

by 현장 2024. 1. 14.

-Code

arr = [
    "*x*",
    " xx",
    "* *"
]

n = int(input())

for  i in range(3):
    res = ""

    for e in arr[i]:
        res += e * n

    for _ in range(n):
        print(res)