BAEKJOON Online Judge(BOJ) 문제입니다. https://www.acmicpc.net/ Baekjoon Online Judge Baekjoon Online Judge 프로그래밍 문제를 풀고 온라인으로 채점받을 수 있는 곳입니다. www.acmicpc.net 문제 https://www.acmicpc.net/problem/17135 내가 작성한 코드 import sys from collections import deque, defaultdict from itertools import combinations dir = [(0, -1), (-1, 0), (0, 1)] def get_data(): read = sys.stdin.readline N, M, D = map(int, read().rst..