1. import java.util.Scanner; public class Huawei1 { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int[][] matrix = new int[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++...