Chef and Painting

Need help

qstn: http://www.codechef.com/OCT14/problems/CHEFPNT

for the given test case answer should be 11 as given in qstn “The aim of game is to paint all white cells with red color in the minimal number of steps”

DELETED

please explain if my interpretation is wrong for this qstn

You cant ask for help during live contest

2 Likes