#include
#include
#define maxn 101
char pool[maxn][maxn];
int vis[maxn][maxn];
int n, m;
int dx[8] = {-1, -1, -1, 0, 0, 1, 1, 1}, dy[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
void dfs(int x, int y){
int d;
vis[x][y] = 1;
for(d = 0; d < 8; ++d){
int nx = x + dx[d], ny = y + dy[d];
if(nx>=0 && nx=0 && ny
poj2386 深搜 連通塊問題
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
華爲雲IoT專家實踐分享,開源如何改變物聯網?
原創
2024-05-29 10:57:55
怎麼使用Stable diffusion中的models
原創
2024-05-28 21:38:55
關於Vearch在大模型中使用的一些實踐
原創
2024-05-28 11:56:14
掌握這些代碼安全檢視方法,提升你的代碼質量
原創
2024-05-28 10:58:04
構建強韌:愛奇藝VRS系統可用性建設實踐
原創
2024-05-28 02:22:00
記一次攻防演練中的若依(thymeleaf 模板注入)getshell
原創
2024-05-27 23:16:06
滿幫集團 Eureka 和 ZooKeeper 的上雲實踐
原創
2024-05-27 21:13:47
不完全指南:通過可觀察性實現CI/CD的高可用性
原創
2024-05-27 14:04:31
RequestBodyAdvice 詳細介紹與使用實現例子介紹
原創
2024-05-27 10:53:58
@ResponseBody是怎麼起作用的
微學網絡
2024-05-27 10:53:54
Springboot 對返回結果ReturnValueHandler 處理實現原理與實現說明
原創
2024-05-27 10:53:53
安裝筆記本應用商店的pycharm,再安排pandas等模塊,說是沒有打包工具?
原創
2024-05-25 10:02:28
DevExpress Office File API中文教程 - 如何用OpenAI模型增強Office文檔可訪問性?
原創
2024-05-25 00:20:55