Question: Please answer this as quickly as possible in PYTHON. $11 Raging Rhinos Fully grown rhinos can weigh over 5000 pounds! The rhinos are in a

Please answer this as quickly as possible in PYTHON.

Please answer this as quickly as possible in PYTHON. $11 Raging Rhinos

$11 Raging Rhinos Fully grown rhinos can weigh over 5000 pounds! The rhinos are in a fit of rage, and they are ready to duke it out in an all-out frenzy. The rules are as follows: the rhinos all stand in a line facing either to the left or right. All rhinos begin with a positive amount of stamina. At the sound of the bell, all rhinos will begin charging in their respective directions at the same speed, and upon encountering another rhino, they will collide. The rhino with less stamina is knocked out of the line while the rhino with more stamina continues in the same direction, with its stamina reduced by the stamina of its opponent. If two rhinos with the same stamina collide, both drop out of the line. Can you determine the state of the rhinos after all collisions? Note that a rhino never changes directions. Input Format: The first line contains N, the number of rhinos (1 SN

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!