In other words, when calculating the distance between four sides of a square, count the trees with vertices again, and there are four vertices.
So subtract 4.
Similarly, the same is true of triangle planting trees.
There are three vertices
So subtract 3.
I don't know if you understand.
Hope to adopt
If you don't understand, you can list.