A
С
E
Lego Tower
- Problem Description
Rahul and his friends are making LEGO towers out of their LEGO bricks. His friends arrive at different times and join the existing gr
activity. The rules that Rahul and friends are following are as follows:
To maintain the balance of the tower, they decide to impose a maximum limit on the height of the tower
Each friend brings whatever number of bricks he has, but less than or equal to the maximum height allowed for the tower
in order to differentiate between bricks belonging to different friend, they decide to insert a plate between bricks brought by two friend
Height of each brick as well as height of each plate is 1 unit
Actual height of the constructed tower is total number of bricks + plates) in that tower
Plate can only be added it oncks above belong to a different frend
in order to avoid losing bricks, they also agree that all the bricks belonging to one friend will be used only in construction of one tower
Once the construction of a new tower has begun no brick/plate can be added to the previous tower
Help Rahul and friends such that they are of maximum height and minimum number of towers possible
You also have to
mimize height factor while maintaining minimum number of towers
Height factor I (Maximum height allowed - height of tower
e
Answers
Answered by
1
Answer:
whats for this question......i think this is incomplete
Similar questions