일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- LCS
- 홈화면
- 괄호
- 뒤로가기
- 11기
- expo
- 순열
- 매일11시
- Combination
- 앱
- Android
- 11053
- 11057
- lcm
- 11054
- Kotlin
- 안드로이드
- 1260
- 백준
- itertools
- 최소공배수
- 6603
- Python
- 9095
- 1182
- 코테
- 나머지
- 파이썬
- 코틀린
- permutation
Archives
- Today
- Total
목록1697 (1)
황소개발자
백준 1697 파이썬 python : 숨바꼭질 @@황소처럼 우직하게@@
화이팅! n, k = map(int, input().split()) dist = [-1 for i in range(100001)] from collections import deque def bfs(v): q = deque() q.append(v) dist[v] = 0 while q: now = q.popleft() if now + 1 = 0 and dist[now - 1] == -1: q.append(now - 1) dist[now - 1] = dist[now] + 1 if now * 2
백준 문제 풀이
2020. 3. 3. 05:17