반응형 BFS2 [백준 / Python] 7576번 토마토 문제https://www.acmicpc.net/problem/7576https://www.acmicpc.net/problem/7576 풀이#2차원 dfs / / replit.comfrom collections import deque# append():- This function is used to insert the value in its argument to the right end of the deque.# appendleft():- This function is used to insert the value in its argument to the left end of the deque.# pop():- This function is used to delete an argument from th.. 2024. 5. 8. [백준 / Python] 7569번 토마토 문제 https://www.acmicpc.net/problem/7569 7569번: 토마토 첫 줄에는 상자의 크기를 나타내는 두 정수 M,N과 쌓아올려지는 상자의 수를 나타내는 H가 주어진다. M은 상자의 가로 칸의 수, N은 상자의 세로 칸의 수를 나타낸다. 단, 2 ≤ M ≤ 100, 2 ≤ N ≤ 100, www.acmicpc.net 소스코드 #3차원 dfs / / replit.com from collections import deque # append():- This function is used to insert the value in its argument to the right end of the deque. # appendleft():- This function is used to inse.. 2024. 2. 17. 이전 1 다음 728x90 반응형