#C13419. Pair Differences

    ID: 42955 Type: Default 1000ms 256MiB

Pair Differences

Pair Differences

Given a list of integers, compute the absolute differences between every pair of distinct elements. For each ordered pair of indices \( (i,j) \) with \( i \neq j \), calculate \( |a_i - a_j| \). The differences should be output in the order: for each index \( i \) from 0 to \( n-1 \), and for each index \( j \) from 0 to \( n-1 \) where \( i \neq j \).

inputFormat

The first line contains an integer n representing the number of elements in the list. The second line contains n space-separated integers.

outputFormat

Output a single line with the absolute differences between every pair of distinct elements, separated by a space. If there are no pairs, output an empty line.

## sample
3
3 10 6
7 3 7 4 3 4