#P10666. COUNTARI
COUNTARI
Problem Description
Given an array of length , find how many triples satisfy .
Input Format
The first line contains an integer . The second line contains positive integers .
Output Format
Output one integer in one line, representing the required result.
10
3 5 3 6 3 4 10 4 5 2
9
Hint
Constraints: , .
Translated by ChatGPT 5