#include <stdio.h> int main() { int n,m;//n行m列 scanf("%d %d", &n, &m); int i,j; char arr[1000][1000] = {0}; for (i = 0; i < n; i++)//输入 { j = 0; for (j = 0; j < m; j++) { scanf(" %c", &arr[i][j])...