일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Android
- 11057
- 최소공배수
- 앱
- 매일11시
- 코틀린
- Python
- 파이썬
- permutation
- 11054
- Kotlin
- 1182
- expo
- 뒤로가기
- 안드로이드
- Combination
- LCS
- 괄호
- 백준
- lcm
- itertools
- 코테
- 1260
- 순열
- 11053
- 홈화면
- 9095
- 11기
- 나머지
- 6603
Archives
- Today
- Total
목록2178 (1)
황소개발자
백준 2178 파이썬 python : 미로 탐색 @@황소처럼 우직하게@@
import sys input = sys.stdin.readline h, w = map(int, input().split()) mat = [[] for i in range(h)] dx = [1, -1 , 0, 0] dy = [0, 0, 1, -1] for i in range(h): ss = input().strip() for s in ss: mat[i].append(int(s)) def bfs(y, x): q = [[y, x]] while q: now = q.pop(0) for i in range(4): ny = now[0] + dy[i] nx = now[1] + dx[i] if 0
백준 문제 풀이
2020. 3. 3. 01:40