package main import ( "fmt" "io" ) func dfs(flag [1000][1000]bool, input [][]int, ret *[][]int, i, j, m, n int) { if i < 0 || j < 0 || i >= m || j >= n { return } if i == m-1 && j == n-1 { for i := range *ret { fmt.Printf("(%d,%d)\n", (*ret)[i][0], (*ret)[i][1]) }...