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