Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kattis - Best Relay Team - C Language I need an expert to work out the code for the problem described below for me please.
Kattis - Best Relay Team - C Language
I need an expert to work out the code for the problem described below for me please. Thanks!
Best Relay Team You are the coach of the national athletics team and need to select which sprinters should represent your country in the 4 x 100 m relay in the upcoming championships. As the name of the event implies, such a sprit relay consist of 4 legs, 100 meters each. One would think that the best team would simply consist of the 4 fastest 100 m runners in the nation, but there is an important detail to take into account: flying start. In the 2nd, 3rd and 4th leg, the runner is already running when the baton is handed over. This means that some runners-those that have a slow acceleration phase can perform relatively better in a relay if they are on the 2nd, 3rd or 4th leg. Pict by Femando Frazo/Agncia Brasil, cc by You have a pool of runners to choose from. Given how fast each runner in the pool is, decide which four runners should represent your national team and which leg they should run. You are given two times for each runner - the time the runner would run the 1st leg, and the time the runner would run any of the other legs. A runner in a team can only run one leg. Input The first line of input contains an integer n, the number of runners to choose from (4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started