I've been getting a lot of WAs on this one, I think I increased the WA count from 100 to 141. But anyways, my current input deals with a lot of cases but I have a problem and it is that the statement does not make it clear what to do with ambiguous input, it says that all the input will be valid but it doesn't mention ambiguous data.
It says that all the squares that certainly have a mine must be replaced with an X
With that logic this :
would become this:
Those 4 squares are the only ones that we are certain they have a square, but I am not too sure about this and I just can't stop getting WA. Would appreciate if the problemsetter or a person who got AC replies., cause I am pretty clueless on how to deal with these cases.