Stacked people

In a grand circus event performers are about to do a stunt where each performer stands atop of the others shoulder. For practical reasons, each person must be strictly both shorter and lighter than the person below him or her.

Given the height and weight of each performers respectively in the text file, what is the maximum number of people that can be included in the stunt?

×

Problem Loading...

Note Loading...

Set Loading...