博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
简单深搜
阅读量:7056 次
发布时间:2019-06-28

本文共 461 字,大约阅读时间需要 1 分钟。

题目链接:

#include 
#include
int t;int r,c;int maps[105][105];int color[105][105];int to[4][2]= {
{
0,1},{
0,-1},{
1,0},{-1,0}};void dfs(int i,int j){ if(maps[i][j]==1&&color[i][j]==0) { color[i][j]=1; for(int k=0; k<4; k++) { int tx=i+to[k][0]; int ty=j+to[k][1]; if(tx>-1&&tx
-1&&ty

 

转载于:https://www.cnblogs.com/TreeDream/p/5312433.html

你可能感兴趣的文章
Spring AOP 知识点入门
查看>>
nginx安装部署
查看>>
1102 面积最大的矩形
查看>>
JavaWeb项目(SSM)准备工作
查看>>
python 字符串操作
查看>>
C# to IL 2 IL Basics(IL基础)
查看>>
Flocks,Herds and Schools: A Distributed Behavioral Model
查看>>
期末作业验收
查看>>
VS调试技巧之----Attach to Process
查看>>
HTML+CSS+JAVASCRIPT 总结
查看>>
比较汇编指令 LEA 和 MOV
查看>>
iOS多线程之4.GCD简介
查看>>
绘制双坐标轴的图形3-不同的plot类型
查看>>
贪吃蛇源代码分析
查看>>
VB中StdPicture尺寸(Width,Height)转像素单位
查看>>
初来乍到
查看>>
TextKit学习通过boundingRectWithSize:options:attributes:context:计算文本尺寸
查看>>
01.VC++2008开始写程序
查看>>
函数栈帧(用汇编来剖析)
查看>>
angular controller的一些用法
查看>>