일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 코틀린
- 6603
- lcm
- itertools
- permutation
- 파이썬
- 1260
- Android
- 백준
- Combination
- 11기
- Python
- 앱
- 11057
- 11054
- 홈화면
- 코테
- 최소공배수
- expo
- 11053
- 매일11시
- 9095
- 순열
- 나머지
- 뒤로가기
- LCS
- Kotlin
- 안드로이드
- 괄호
- 1182
Archives
- Today
- Total
목록14226 (1)
황소개발자
백준 14226 파이썬 python : 이모티콘 @@황소처럼 우직하게@@ 이게무슨..
더 화이팅하자 s = int(input()) MAX = 999999999 time = [[MAX for i in range(1001)] for j in range(1001)] # 1, 0 def bfs(s, c): q = [[s, c]] time[s][c] = 0 while q: now = q.pop(0) s_now = now[0] c_now = now[1] if time[s_now][s_now] == MAX: time[s_now][s_now] = time[s_now][c_now] + 1 q.append([s_now, s_now]) if s_now + c_now = 0 and time[s_now - 1][c_now] == MAX: time[s_now - 1][c_now] = time[s_now][c_no..
백준 문제 풀이
2020. 3. 3. 06:35