문제 링크
n = int(input()) for i in range(1, n+1): if i==n: print(("*" + " ") * i) else: print(" " * (n-i) + "*", end='') print((" " + "*") * (i-1))