기출 문제 / 삼성 2021 First Half Afternoon Problem 1

Tree Tycoon

You are tasked with growing the mysterious tree, Libro, on an n×n grid.

Different heights of Libro trees are given on the n×n grid.

To grow the Libro trees, a special fertilizer is required. The special fertilizer increases the height of the Libro tree on a 1×1 plot by 1.