Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

翻译

Posted by zerocpp at 2011-05-16 16:51:44 on Problem 3619
Poj 3620 Avoid The Lakes
由于最近暴雨连连,John的农场发洪水了,更糟糕的是他的奶牛非常怕水。保险公司会赔偿他,但要看农场中最大的“湖”而定。
农场可以看成一个N行M列的矩形,每个单元或者有水或者没水,有K个单元有水。若两个单元都有水并且有公共边,则它们认为是一个湖的一部分。
输入:
1行:N(1<=N<=100) M(1<=M<=100) K(1<=K<=N*M)
K行:Ri Ci表示某个有水单元的坐标
输出:
1行:最大湖的大小

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator