Problem 2658. Average speed for the entire trip

The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per hour (MPH).

So, for example, a train travels at 60 MPH on a trip and at 100 MPH on return trip. What was its average speed for the entire trip?

Solution Stats

40.88% Correct | 59.12% Incorrect
Last Solution submitted on Jul 04, 2020

Solution Comments