首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
岛屿数量
6条解析
开通博客写题解
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[
展开全文
Sau_Hanson
发表于 2026-02-18 13:37:16
#include <bits/stdc++.h> #include <cstring> using namespace std; #define int long long const int N=110; char G[N][N]; bool check[N][N]; //
展开全文
牛客用户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]
展开全文
lao_xiao
发表于 2026-02-22 15:44:24
#include <iostream> #include <vector> using namespace std; const int N = 110; char g[N][N]; bool st[N][N]; int dx[8] = {0,0,-1,-1,-1,1,
展开全文
自由的风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
展开全文
查看本题
查看本题讨论
等你来战
查看全部
牛客练习赛149
报名截止时间:2026-03-13 21:30
【小羊肖恩】小羊杯 Round 3
报名截止时间:2026-03-15 18:00
牛客周赛 Round 135
报名截止时间:2026-03-15 21:00
牛客小白月赛130
报名截止时间:2026-03-20 21:00
CACPC - 环海岸线联盟联合校赛决赛(同步赛)
报名截止时间:2026-03-21 18:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题