DCan this task be solved with Bruteforce by checking every '#' as middle and trying to go up and down?
or this task can be solved using Dp?
AVery similar to task bogatas.
DToo bad I didn't solved bogatas with dp I solved it with Bf and making Rectangles of sums similar to Bit but without Log ( n ) set , only with o ( 1 ) query...
DSolved thanks for hint :)