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 | 29 | 30 |
Tags
- CNN
- Python
- deep learning
- eecs 498
- hm3dsem
- r-cnn
- LSTM
- hm3d
- 딥러닝
- 머신러닝
- 백준
- dynamic programming
- AlexNet
- image processing
- Reinforcement Learning
- Mask Processing
- 강화학습
- C++
- YoLO
- machine learning
- NLP
- two-stage detector
- DP
- MySQL
- ubuntu
- BFS
- opencv
- dfs
- real-time object detection
- 그래프 이론
Archives
- Today
- Total
목록4963 (1)
JINWOOJUNG

접근법 기존의 dfs에서 대각선을 탐색하는 경우의 수를 추가해 줘야 하며, "0 0"을 입력받기 전까지 반복해야 함으로 반복할 때 마다 전체 그래프와 cnt를 초기화 해 줘야 한다. 따라서 dfs()의 parameter에 전체 그래프도 추가되어야 한다. 정답 import sys sys.setrecursionlimit(10**6) di = [0,0,-1,1,1,1,-1,-1] dj = [1,-1,0,0,1,-1,1,-1] def dfs(i, j, Map): Map[i][j] = 0 for k in range(8): I = i+di[k] J = j+dj[k] if 0
백준
2024. 1. 3. 21:56