有人用三菱那个72寸的DLP么?# Living
P*b
1 楼
A circus is designing a tower routine consisting of people standing atop one
another’s
shoulders. For practical and aesthetic reasons, each person must be both sho
rter and lighter than the person below him or her. Given the heights and wei
ghts of each person in the circus, write a method to compute the largest pos
sible number of peoplein such a tower.
EXAMPLE:
Input (ht, wt): (65, 100) (70, 150) (56, 90) (75, 190) (60, 95) (68, 110)
Output: The longest tower is length 6 and includes from top
another’s
shoulders. For practical and aesthetic reasons, each person must be both sho
rter and lighter than the person below him or her. Given the heights and wei
ghts of each person in the circus, write a method to compute the largest pos
sible number of peoplein such a tower.
EXAMPLE:
Input (ht, wt): (65, 100) (70, 150) (56, 90) (75, 190) (60, 95) (68, 110)
Output: The longest tower is length 6 and includes from top