일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- flask
- codesignal
- 백준
- til
- baekjun
- 피보나치 수
- Python
- All Longest Strings
- collections.deque
- C++
- Numpy
- codesingal
- Daily Commit
- 수 정렬하기
- 10953
- data_structure
- 파이썬 포렌식
- almostIncreasingSequence
- Counting cells in a blob
- cpp
- matrixElementsSum
- recursion
- 파이썬머신러닝완벽가이드
- adjacentElementsProduct
- shapeArea
- Sequential Search
- markdown
- centuryFromYear
- 2750
- 2015 봄학기 알고리즘
Archives
- Today
- Total
Introfor
[백준] 3004번 체스판 조각 본문
체스판 나누는 걸 생각하면 쉽게 알 수 있다.
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 |
'Programming_prob > BaekJoon' 카테고리의 다른 글
[백준] 5596번 시험 점수 (0) | 2020.10.19 |
---|---|
[백준] 5532번 방학 숙제 (0) | 2020.10.19 |
[백준] 2525번 오븐 시계 (0) | 2020.10.19 |
[백준] 2480번 주사위 세개 (0) | 2020.10.18 |
[백준] 1978번 소수 찾기 (0) | 2020.10.10 |
Comments