[백준] 14500번: 테트로미노 (파이썬)
https://www.acmicpc.net/problem/14500 문제를 읽고, BFS가 먼저 생각났다.from collections import dequen,m = map(int,input().split())graph = [ list(map(int,input().split())) for _ in range(n)]#방향dx = [1, 0, -1, 0]dy = [0, -1, 0, 1]4방향을 탐색해야 하므로, 방향 리스트를 만들어 준다.result = 0for i in range(n): for j in range(m): score = search(i,j) result = max(result, score)print(result)모든 좌표에서 나올 수 있는 점수중에 가장 큰 점..
더보기