# import sys
# from pprint import pprint
#
# limit_number = 15000
# sys.setrecursionlimit(limit_number)
#
# cani = []
# num = 0
# a = 7
#
# def Findjelly(v, x, y):
# global k
# global num
#
# if (x<0) or (y<0) or (x>=7) or (y>=7) or (cani[x][y] == 0) or (x == a) or (y == a):
# return
#
# if cani[x][y] == v:
# cani[x][y] = 0
# k += 1
#
# Findjelly(v, x - 1, y)
# Findjelly(v, x + 1, y)
# Findjelly(v, x, y - 1)
# Findjelly(v, x, y + 1)
#
# if k >= 3:
# return
#
# for i in range(7):
# a = list(map(int, input().split()))
# cani.append(a)
#
# for x in range(6):
# for y in range(6):
# k = 0
# Findjelly(cani[x][y], x, y)
# if k>=3:
# num += 1
# # pprint(cani)
# # print()
# # print(num)
# print(num)
queue = []
tomatobox = []
countday = 0
xnum, ynum = map(int, input().split())
for i in range(ynum):
a = list(map(int, input().split()))
tomatobox.append(a)
# def findone():
# findlist = []
# for i in range(ynum):
# for j in range(xnum):
# if tomatobox[i][j] == 1:
# findlist.append(i, j)
# return
def inputqueue(x, y, v):
if (x == xnum) or (y == ynum) or (x == 0) or (y == 0) or (tomatobox[x][y] == 0):
return
if tomatobox[x][y] == 0:
top of page
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
210929
210929
댓글 0개
좋아요
댓글(0)
bottom of page