Everyone is afraid of something. Someone is afraid of darkness, someone is afraid of heights,
someone is afraid of Vinnie Jones (all of us are afraid of Vinnie Jones), someone is afraid of singing
before eating something…
There are many fears, but the greatest among all for Mirko is choosing a land for planting
strawberries. Mirko’s land can be described as a matrix with N rows and M columns. Some of the
fields in the matrix are suitable for planting strawberries and some are not – weeds grow there. Mirko
is looking for rectangular parts of the land that are completely filled with fields suitable for strawberry
planting. Those kind of rectangles are called suitable rectangles. Also, Mirko is interested in the
potential value of all fields in the matrix. The potential value of each field in the matrix is defined as
the number of suitable rectangles that contain that field.
Since Mirko has troubles facing his fears, he asks you
COCI 2018/2019 Strah(极大子矩形思想)
最新推荐文章于 2025-05-07 15:10:58 发布