首页
比赛
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
扫雷
15条解析
开通博客写题解
夏声
发表于 2021-11-27 13:32:11
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,ls=0;//ls是每轮统计完的雷数 cin>>n>>m; char a[105][105]={0};//这里
展开全文
代码没我跑的快
发表于 2022-03-30 19:32:42
just for test.我相信只有像我这样的傻子才会发这种题 #include<bits/stdc++.h> using namespace std; bool a[101][101]; int m,n; int main(){ cin>>m>>n;
展开全文
武陟—垫下
发表于 2022-01-27 13:10:30
int chek(int x, int y, char n, int sum,int b,int c) { if (x >= 0 &&&
展开全文
21软院小舷
发表于 2022-03-30 12:02:16
">int main() { int n,m,i,j,count; char a[101][101]={0}; scanf("%d %d",&n,&m); getchar();//读入换行符 for(i=0;i<n;i++) {
展开全文
RIOISDAD
发表于 2022-12-18 17:16:04
#include <iostream> using namespace std; int main() { int n,m,count=0; cin>>n>>m; char a[1001][1001]; for(int i=1;i&
展开全文
松鼠卡卡
发表于 2024-03-02 20:38:07
思路简单 #include<iostream> #include<string> using namespace std; int n, m; int x[8] = {-1, 0, 1, -1, 1, -1, 0, 1}; int y[8] = {-1, -1, -1,
展开全文
呆比王
发表于 2021-01-08 20:28:05
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #in
展开全文
青笙
发表于 2021-12-28 08:34:21
解决此题的关键在于如何构建二位数组,并且判断“非地雷格”附近有多少个地雷。我们先创建一个整数的二维数组,将读取到的字符进行重新赋值,我们将获取到的‘*’也就是地雷赋值为-8,将获取到的‘?’也就是非地雷格赋值为0.接下里通过对二维数组进行挨个遍历判断,数组的值为0的将进行周围判断是否存在“地雷”,若
展开全文
KaynGe
发表于 2021-03-23 23:31:33
#include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; char a[105][105], b[105][10
展开全文
F1rstFinal
发表于 2023-03-21 13:52:40
#include<bits/stdc++.h> using namespace std; int fx[8][2]={{-1,-1},{-1,0},{-1,1},{0,1},{0,-1},{1,-1},{1,0},{1,1}}; char ch[105][105]; int dfs(ch
展开全文
查看本题
查看本题讨论
相关比赛
12597-武汉海军工程大学第十二届蓝桥杯选拔赛(校内赛)
进入比赛
17895-长沙师范学院校赛4
进入比赛
18296-信息编程学习-基础练习
进入比赛
18388-暑假第一周Java基础训练
进入比赛
20838-智能车选拔测试练习
进入比赛
等你来战
查看全部
牛客小白月赛118
报名截止时间:2025-06-13 21:00
第五届上海理工大学程序设计全国挑战赛
报名截止时间:2025-06-22 17:00
2025牛客暑期多校训练营1
报名截止时间:2025-07-15 17:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题