#include <stdlib.h> #include <stdio.h> int main() { int m = 0; int n = 0; scanf("%d %d", &m, &n); char* a = (char*)calloc((m + 2) * (n + 2), sizeof(char));//我觉calloc更好用 因为自带初始化 int i = 0; int j = 0; for (i = 1; i < m + 1; i++) { for (j = 1; j < n + 1; j...