#include <stdio.h> int main() { char arr[1000][1000]; int n,m,x,y,i,j,num=0; scanf("%d %d", &n, &m); for (i = 1; i <= n; i++){ getchar(); //吸收\n for (j = 1; j <= m; j++){ scanf("%c", &arr[i][j]); } } for (i = 1; i &...