#include <stdio.h> int main() { int n = 0; int m = 0; scanf("%d %d", &n, &m);//输入行列 int arr[n][m];//定义一个二维数组 int i = 0; for (i = 0; i < n; i++)//遍历输入 { int j = 0; for (j = 0; j < m; j++) { scanf("%d&...