B - Line Sensor Editorial by llichenyu


This is a very simple problem. We find that the question is actually about the number of occurrences of the character \(\verb!#!\) in each column, so we can simulate it.

posted:
last update: