문제
Farmer John's N cows (
As Farmer John watches, he observes a group of three cows (
입력
* Line 1: The number of cows, N.
* Lines
출력
* Line 1: The number of triples of cows
예제1
3
1
10
7
4
4
INPUT DETAILS:
There are 5 cows, at positions 3, 1, 10, 7, and 4.
OUTPUT DETAILS:
The four possible triples are the cows as positions