版本比较
1.29总结
正文
增加 10 行删除 10 行
16 行未改动17181920212122232425122 行未改动全部展开14814915015115215315215315415515615715815916016016116216316416516616616716816916917017117217336 行未改动2102112122132142142152162172183 行未改动22222322422522622622722822923051 行未改动2822832842852862862872882892902912912922932942954 行未改动16 行未改动 if(idx <= 3) { for(int i = 1;i <= n;i ++) { cout << a[i] << " "; cout << a[i] << " "; } cout << "\n"; } }122 行未改动全部展开}int main(){ cin >> n;
for(int i = 1;i <= n;i ++) { for(int j = 1;j <= n;j ++) { char c; cin >> c;
if(c != '*') vis[i][j] = c - '0'; else { idx ++; a[idx] = {i,j}; a[idx] = {i,j}; } } } } dfs(1); cout << ans; return 0;}36 行未改动int main(){ int t; cin >> t;
while(t --) { ans = 0; for(int i = 1;i <= n;i ++)3 行未改动 cin >> a[i][j]; if(a[i][j] == 'B') vis[i][j] = 1; else if(a[i][j] == 'W') vis[i][j] = -1; vis[i][j] = -1; else vis[i][j] = 0; } } for(int i = 1;i <= n;i ++)51 行未改动 for(int j = 1;j <= n;j ++) { char x; cin >> x;
if(x == '.') { vis[i][j] = 1; }
} } dfs(1); cout << idx;4 行未改动