baekjoon 20260401

This commit is contained in:
songyc macbook 2026-04-01 20:50:49 +09:00
parent 5320926dc2
commit 2aa4c9cd8f

View File

@ -0,0 +1,10 @@
print((lambda x : (x//2+1)*(x//2+2) if x%2 else (x//2 + 1)**2)(int(input())))
# 1 1*2
# 2 2*2
# 3 2*3
# 4 3*3
# 5 3*4
# 6 4*4
# 7 4*5
# 8 5*5