[POJ 3617]Best Cow Line

Description

FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual”Farmer of the Year” competition. In this contest every farmer arranges his c[……]

Read more

[POJ 2386]Lake Counting

Description

有一个大小为 N × M 的园子,雨后积起了水。八连通的积水被认为是连接在一起的。请求出
园子里总共有多少水洼?(八连通指的是下图中相对 W 的*的部分)

* * *
* W *
* * *

Input

第 1 行 两个数 N, M
第2~n行 各 M 个数

Sam[……]

Read more