Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 개발
- 코딩테스트
- 안드로이드
- BAEKJOON
- codingtest
- django
- DFS
- cos pro 1급
- cos
- Algorithm
- issue
- 코테
- 안드로이드스튜디오
- Python
- 파이썬
- docker
- 백준
- 동적계획법
- Flutter
- 코드품앗이
- 알고리즘
- AndroidStudio
- android
- C++
- 동적계획법과최단거리역추적
- 분할정복
- DART
- vuejs
- cos pro
- DFS와BFS
Archives
- Today
- Total
목록cos pro 1급 꽃피는 봄이 언제 오나요 python (1)
Development Artist

문제 유형 코딩 난이도 normal Note 1. bfs 문제. 백준의 토마토 문제와 유사(?같음.). 2. bfs 문제를 많이 풀어보면, 익숙하다. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean # bfs, 백준 토마토 문제 from collections import deque dx=[-1,0,1,0] # 좌 우 dy=[0,1,0,-1] # 상 하 queue = deque() def bfs(n, garden): while queue: x,y = queue.popleft() for i in range(4): nx = x + dx[i] ny = y + dy[i] if 0
Algorithm/COS
2022. 2. 28. 17:26