Skip to content

Instantly share code, notes, and snippets.

@jail238

jail238/26535.py Secret

Created December 3, 2023 21:31
n = int(input())
x, y = 0, 1
while True:
if x**2 < n <= y**2:
break
x += 1; y += 1
print("x"*(2+y))
for _ in range(y):print("x"+"."*y+"x")
print("x"*(2+y))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment