package main import . "fmt" func main() { var n,m int Scan(&n,&m) a:=make([]int,n*m) b:=make([]int,n*m) for i:=range a[:n] { Scan(&a[i]) for k:=i+n;k