Sixzeroo


  • 首页

  • 分类

  • 标签

  • 归档

  • 友链

  • 关于

  • 搜索

poj 2386 Laking Counting

发表于 2016-11-08 | 分类于 算法 | 阅读次数:
字数统计: 528 字

Lake Counting

题目描述

Due to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water (‘W’) or dry land (‘.’). Farmer John would like to figure out how many ponds have formed in his field. A pond is a connected set of squares with water in them, where a square is considered adjacent to all eight of its neighbors.

Given a diagram of Farmer John’s field, determine how many ponds he has.

阅读全文 »

开启我的博客之旅

发表于 2016-09-25 | 分类于 杂记 | 阅读次数:
字数统计: 406 字

很久以来都想做一个自己的博客,但是由于各种原因一直没能做出来。这个学期开学也有一段时间了,我也成功地转到了计算机专业。最近就花了一些时间把博客做出来,当然刚开始很多地方都有不足有漏洞,希望未来真正能够把这个博客做起来!下面讲一讲我为什么要把这个博客给做起来吧。

阅读全文 »
1…1718
Sixzeroo

Sixzeroo

172 日志
9 分类
40 标签
RSS
github QQ
© 2021 Sixzeroo | 共 362.5k 字 |
皖ICP备17000842号-1
|
由 Hexo 强力驱动