Problem #PRU-67173

Problems Visual geometry

Problem

In the middle of an empty pool there is a square platform of 50×50 cm, split into cells of 10×10 cm. Sunny builds towers of 10×10×10cm cubes on the platform cells. After that his friend Margo turns on the water and counts how many towers are still above the water level. They call each visible tower an island.

For example, let’s consider the case when the heights of the towers are as given in the table on the right. Then at the water level of 5 cm there is 1 island, at the water level of 15 cm there are two islands (if the islands have a common corner or don’t intersect at all, they are considered separate islands), and at the water level of 25 cm, all the towers are covered with water and there are 0 islands.
image image
Find out how Sunny should build his towers to get the following numbers of islands corresponding to the level of water in the pool: Water level (cm)515253545Number of islands25250

In the solution, write down how many cubes are there composing a tower in each cell as it is done in the example.