diff --git a/code_study/Baekjoon/python/3004.py b/code_study/Baekjoon/python/3004.py new file mode 100644 index 0000000..4890d6d --- /dev/null +++ b/code_study/Baekjoon/python/3004.py @@ -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 \ No newline at end of file