import java.util.*; public class SubMatrix { public int maxSubMatrix(int[][] mat, int n) { // write code here int[][] hang = new int[n][n]; int[][] lie = new int[n][n]; initial(n, hang, lie, mat); int max = 1; for (int i = 1; i < n; i++) { f...