← Back to topics
Topic

Z-dijamant

D
Dgleich
Can 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?
A
Al3kSaNdaR
Very similar to task bogatas.
D
Dgleich
Too 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...
D
Dgleich
Solved thanks for hint :)