#yuki_13 def dfs(y,x,py,px,n): global suc if suc: return done[y][x]=True for i in xrange(4): ny=y+dy[i] nx=x+dx[i] if not (0<=ny and ny