首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
岛屿数量
4条解析
开通博客写题解
realrole
发表于 2025-11-25 22:39:02
#include <iostream> #include<string> #include<vector> #define int long long #define endl '\n' using namespace std; int n,m; char a[
展开全文
牛客用户098471297
发表于 2025-12-04 14:44:57
#include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' #define quick ios::sync_with_stdio(false);cin.tie(0);cout.t
展开全文
chenlan114
发表于 2026-01-10 15:46:26
#include <bits/stdc++.h> using namespace std; using ll=long long; const ll N=105; // 数组大小(因为n,m≤100,开105留边界) // 全局变量:存储地图、访问标记、八方向偏移 char g[N]
展开全文
自由的风0450
发表于 2025-12-01 22:55:28
#include <iostream> #include<vector> using namespace std; const int dirs[8][2]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}}; v
展开全文
查看本题
查看本题讨论
等你来战
查看全部
牛客周赛 Round 128
报名截止时间:2026-01-25 21:00
牛客小白月赛128
报名截止时间:2026-01-30 21:00
牛客周赛 Round 129
报名截止时间:2026-02-01 21:00
2026牛客寒假算法基础集训营1
报名截止时间:2026-02-03 18:00
2026牛客寒假算法基础集训营2
报名截止时间:2026-02-05 18:00
牛客2026年情人节比赛
报名截止时间:2026-02-14 21:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题