Programming_prob/BaekJoon
[백준] 3004번 체스판 조각
YongArtist
2020. 10. 19. 23:03
체스판 나누는 걸 생각하면 쉽게 알 수 있다.
1
2
3
4
5
6
7
8
9
|
def solution():
n = int(input())
row = int(n/2)
col = n - row
return (row+1)*(col+1)
res = solution()
print(res)
|
cs |