摘要: 就是找联通块 dfs就行 class Solution { public: bool vis[1010][1010]; void dfs(vector<vector<int>>& land, int x, int y, int& cnt) { cnt++; int len1 = land.size( 阅读全文
posted @ 2021-10-17 22:34 WTSRUVF 阅读(31) 评论(0) 推荐(0) 编辑