장애물 인식 프로그램
grid = [] N = int(sys.stdin.readline()) for _ in range(N): line = str(sys.stdin.readline()).strip() line = list(line) line = list(map(int, line)) grid += line, def dfs(y, x): if 0 == grid[y][x]: return 0 cnt = 1 grid[y][x] = 0 for oy, ox in [(1, 0), (-1, 0), (0, 1), (0, -1)]: ny, nx = oy + y, ox + x if not (0
2021.09.28