如果你用string存改变后的黑白画,请不要这样操作:
for(int i = 1; i <= n; i++) for(int j = 1; j <= n; j++) ans[i][j] = '.';
此时会越界,导致RE