일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 괄호
- Combination
- 11기
- expo
- Kotlin
- 순열
- Android
- 1182
- 앱
- 홈화면
- 9095
- 11057
- 파이썬
- Python
- permutation
- 1260
- 최소공배수
- 백준
- 안드로이드
- 11053
- lcm
- 6603
- 코테
- 코틀린
- 나머지
- 매일11시
- itertools
- 뒤로가기
- LCS
- 11054
Archives
- Today
- Total
목록2667 (1)
황소개발자
백준 2667 파이썬 python : 단지번호붙이기 @@황소처럼 우직하게@@
import sys input = sys.stdin.readline dx = [1, -1, 0, 0] dy = [0, 0, 1, -1] def bfs(y, x, count, total): q = [[y, x]] mat[y][x] = count total += 1 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. 2. 19:52