Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

3 of 9
added 19 characters in body
Chas Brown
  • 9.8k
  • 1
  • 14
  • 39

Python 2, (削除) 176 (削除ここまで) (削除) 170 (削除ここまで) 165 bytes

g=lambda a,n:n and g(map(''.join,zip(*a))[::-1],n-1)or a
H,S='# '
R=[H]
n=1
exec"T=[2*S+l for l in g(R,n)];R=g(T[:-1]+[(n+2)*H],3*n);n+=1;"*input()
print'\n'.join(R)

Try it online!

Chas Brown
  • 9.8k
  • 1
  • 14
  • 39

AltStyle によって変換されたページ (->オリジナル) /