Bitchy Slut Www.vidz.co%3B

Easy Bitchyslut Bitchy Slut Lv 2011 04 Turkish Delight Bitchy Slut Problem - 3046

Easy Bitchyslut Bitchy Slut Lv 2011 04 Turkish Delight Bitchy Slut

Slut search
n Bitchyslut wsearch.searcht 2011 esearchisearchesearchJd Turkish e Online Exercise Online Teaching Online Contests Exercise Author
F.A.Q
Hand In Hand
Online Acmers
Forum | Discuss
Statistical Charts
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Code Challenge
Contest LiveCast
ICPC@China
STD Contests
VIP Contests
Virtual Contests
    DIY | Web-DIY beta
Recent Contests
Author ID 
Password 
 Register new ID

(免费宾馆住宿 + 实习工资)阿里巴巴实习生招聘信息(仅限2013届本、硕毕业生)

Pleasant sheep and big big wolf

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1007    Accepted Submission(s): 420


Problem Description
In ZJNU, there is a well-known prairie. And it attracts pleasant sheep and his companions to have a holiday. Big big wolf and his families know about this, and quietly hid in the big lawn. As ZJNU ACM/ICPC team, we have an obligation to protect pleasant sheep and his companions to free from being disturbed by big big wolf. We decided to build a number of unit fence whose length is 1. Any wolf and sheep can not cross the fence. Of course, one grid can only contain an animal.
Now, we ask to place the minimum fences to let pleasant sheep and his Companions to free from being disturbed by big big wolf and his companions.

 

Input
There are many cases.
For every case:

N and M(N,M<=200)
then N*M matrix:
0 is empty, and 1 is pleasant sheep and his companions, 2 is big big wolf and his companions.
 

Output
For every case:

First line output “Case p:”, p is the p-th case;
The second line is the answer.
 

Sample Input
4 6 1 0 0 1 0 0 0 1 1 0 0 0 2 0 0 0 0 0 0 2 0 1 1 0
 

Sample Output
Case 1: 4
 

Source
2009 Multi-University Training Contest 14 - Host by ZJNU
 

Recommend
gaojie
 

Statistic | Submit | Discuss | Note
Home | Top Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2012 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000949(s) query 2, Server time : 2012-02-07 06:20:52, Gzip disabled
Administration
dEasy Bitchyslut Bitchy Slut Lv 2011 04 Turkish Delight Bitchy Slut Problem - 3046r n n Http%3A%2F%2Fwww.559h.com%2F 0 Bitchy Slut qEasy Bitchyslut Bitchy Slut Lv 2011 04 Turkish Delight Bitchy Slut Problem - 3046c Sites