BombBlast finals

given two same m*n matrix, one filled with presence of terrosits with 1 and 0 and other matrix filled with power of mine under each tile in the matrix. find the bombs necessary to kill all terrosists.