Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 131 Bytes

3004.md

File metadata and controls

11 lines (9 loc) · 131 Bytes

3004

Python

N = int(input())
answer = (N // 2 + 1) ** 2
if N % 2 == 1:
    answer += N // 2 + 1
print(answer)