Time Limit: 1000 ms
Memory Limit: 65535 ms
bobo heared from fishhead that you have just learned dfs(the Depth-First-Search algorithm),so he want you to help him solve a very easy problem.
Just count how many consecutive 0 areas are there in a map consists of hexadecimal numbers.Of course you must change the map consists of hexadecimal numbers into the map consists of binary numbers.
5 5 fffff ff00f fffff f0f0f fffff 10 10 ffffffffff 1010110101 101010101f 10100101ff ffffffffff f0000000ff 1010110101 101010101f 10100101ff ffffffffff