백준 16236 파이썬
더보기 from _collections import deque n = int(input()) data = [list(map(int, input().split())) for _ in range(n)] shark_size = 2 dx, dy = [-1, 1, 0, 0], [0, 0, -1, 1] cnt = 0 size_count = 0 def search_fish(): result = n ** 3 nx, ny = 0, 0 global cnt global shark_size global shark_point global size_count for i in range(n): for j in range(n): if data[i][j] != 0: if data[i][j] < shark_size: move_size ..