Wrong on test 53?

Revision en2, by tempestDemise, 2022-04-28 19:42:49

66B - Petya and Countryside 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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English tempestDemise 2022-04-28 19:42:49 6 Tiny change: '[problem:12A]\nSubmiss' -> '[problem:66B]\nSubmiss'
en1 English tempestDemise 2022-04-28 18:50:56 367 Initial revision (published)