Bovine Dilemma

There are n trees at points (x_i, 0) on the riverbank and one tree at (0, 1). Choose any two distinct riverbank trees together with the fixed tree to form a triangle. Count the number of distinct nonzero triangle areas.

Examples
Input: [1,2,3]
Output: 2
Hints

Bovine Dilemma

There are `n` trees at points `(x_i, 0)` on the riverbank and one tree at `(0, 1)`. Choose any two distinct riverbank trees together with the fixed tree to form a triangle. Count the number of distinct nonzero triangle areas.