You are given points on a line. The distance between the two points is defined as follows:
Your task is to determine the sum of the distances between all the points, where the first distance is greater than the second.
Input format
Output format
Print the number that represents the sum of the distance between all the points to exactly two decimal places.
Constraints
dist(5, 2) + dist(5, 7) + dist(2, 7) = -0.31