Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준 15685
- spring security
- 백준 16235
- with recursive
- JPA
- java 기술면접
- 백준 19238
- Spring Boot
- re.split
- Spring
- Kotlin
- springboot
- JVM
- 백준 17626
- MSA
- 파이썬
- 백준 16236
- spring oauth
- MySQL
- 백준
- 프로그래머스
- 백준 16719
- java
- Coroutine
- 웹어플리케이션 서버
- 백준 17779
- sql 기술면접
- spring cloud
- 프로래머스
- 백준 파이썬
Archives
- Today
- Total
목록백준 2630 (1)
시작이 반
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bjXnQ4/btqZpVlHfk0/BEObjTinfV0bGOCWOpNFrk/img.png)
Divide and Conquer에 대한 문제이다. 1. 해당 종이가 일괄된 색이 아니면 4등분을 한다. 2. 4등분된 종이를 다시 검사한다. 1, 2를 일괄된 색일때까지 반복한다. 처음 푼방법 종이를 모든 수에 대해 검사하고 4등분된 종이를 list로 만들어서 다시 재귀를 돌렸다. n = int(input()) graph = [list(map(int, input().split())) for _ in range(n)] blue_count = 0 white_count = 0 def makePaper(graph): if validPaper(graph): return left_top = list() right_top = list() left_bottom = list() right_bottom = list() ..
알고리즘/백준
2021. 3. 6. 21:17