- encloses a total of 2 cells - half a cell per slash /\ - encloses 4 cells fully and half of 8cells, for a total of 8 \ /您的挑战是编写一个程序来确定(并输出) ASCII艺术所包含的全部区域,它仅由空格、斜线和换行符组成。测试用例\ \完全包围3个细胞,部分封闭1
我有两个细胞阵列。一个是大小的'trans_blk‘,<232324x1>是由大小<8x8>的细胞组成,另一个'ca’是大小的,<1024x1>是由大小<8x8>的细胞组成的。m=m+((trans_blk{:,1}(ii,jj)-ca{:,1}(ii,jj))^2);
end
m=m/(size of cell); //size of cell=