Fit Squares in Triangle | CodeChef

can any one help me in getting the concept of isosceles triangle by its base.

Refer this…
https://discuss.codechef.com/t/trisq-editorial/9632