Respuesta :

The reason why just the vertical height of the stairs is measured, because it shows us how much gravity will be used against the person and their weight, and we need to know how much energy and power they have exerted walking up the stairs
[tex]W = \int\limits { \vec F} \, \boldsymbol{\cdot} d \vec x[/tex]

Work is an integral of a dot product of two vectors. The dot product only counts the amount of force, that is applied in the direction of the displacement. In the case of gravity, it acts vertically only. The only displacement that matters, is the vertical part of the movement, which is given by measuring the height of the stairs.