2026-04-01 20:50:49 +09:00

10 lines
142 B
Python

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