Check why my solution is wrong?

check why my solution is wrong?

Since height is always a positive number then, why my solution is wrong.

Ohh, !!! but how come building with equal height can get the light. BTW, it is accepted.