问题
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
示例
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