일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 11054
- 안드로이드
- 괄호
- permutation
- Kotlin
- Combination
- 나머지
- 11기
- 파이썬
- 1260
- Android
- 백준
- expo
- 앱
- 뒤로가기
- 코틀린
- 6603
- 9095
- lcm
- 11053
- 11057
- 순열
- 홈화면
- Python
- 최소공배수
- 매일11시
- itertools
- 1182
- 코테
- LCS
Archives
- Today
- Total
목록2206 (1)
황소개발자
백준 2206 파이썬 python : 벽 부수고 이동하기 @@황소처럼 우직하게@@ 준내신기하네
빨리 성장하자 import sys input = sys.stdin.readline h, w = map(int, input().split()) miro = [[] 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: miro[i].append(int(s)) dist = [[[0, 0] for j in range(w)] for i in range(h)] def bfs(y, x, wall): q = [[y, x, wall]] dist[y][x][wall] = 1 while q: now = q.pop(0) for i in range(4): y, x, z = now ny ..
백준 문제 풀이
2020. 3. 3. 17:36