baekjoon 20260401
This commit is contained in:
parent
5320926dc2
commit
2aa4c9cd8f
10
code_study/Baekjoon/python/3004.py
Normal file
10
code_study/Baekjoon/python/3004.py
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user