12A - Super Agent Submission: 155219826
My idea was the same as the editorial:
Simulate the rain on all the blocks.
First I simulate the rain on the blocks indexed at 1 to n-2.
Then I simulate the rain on blocks indexed at 0 and n-1.
I update the maximum if necessary.
But I am still failing test cast 53.
Why is that?