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
- 이코테
- 머신러닝
- 딥러닝
- 데이터 분석
- 시각화
- ML
- matplotlib
- 이것이 코딩테스트다
- r
- pytorch
- scikit learn
- 통계
- Python
- 코딩테스트
- Google ML Bootcamp
- ADsP
- SQL
- 데이터분석
- 회귀분석
- pandas
- Deep Learning Specialization
- 자격증
- 파이썬
- SQLD
- 데이터분석준전문가
- IRIS
- 태블로
- tableau
- 데이터 전처리
- sklearn
Archives
- Today
- Total
목록너비 우선 탐색 (1)
함께하는 데이터 분석

음료수 얼려 먹기 n, m = map(int, input().split()) graph = [] for i in range(n) : graph.append(list(map(int, input()))) def dfs(x, y) : if x = n or y = m : return False if graph[x][y] == 0 : graph[x][y] = 1 dfs(x - 1, y) dfs(x + 1, y) dfs(x, y - 1) dfs(x, y + 1) return True return False result = 0 for i in range(n) : for j in range(m) : if dfs(i, j) == True : result += 1 print(result..
코딩 테스트/이것이 코딩테스트다
2023. 8. 7. 15:04