GO Solution For UVa 10281 - Average Speed. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

You have bought a car in order to drive from Waterloo to a big city. The odometer on their car is broken, so you cannot measure distance. But the speedometer and cruise control both work, so the car can maintain a constant speed which can be adjusted from time to time in response to speed limits, tr


You can find the full details of the problem Average Speed at UVa Online Judge

Sample Input

00:00:01 100
01:00:01 50
03:00:05 140

Sample Output

00:15:01 25.00 km
00:30:01 50.00 km
03:00:01 200.00 km

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985