Comments

116B. Little Pigs and Wolves

for the test case

WPW
P.P
..W

simple enumeration give wrong answer.