atcoder#ABC249D. [ABC249D] Index Trio
[ABC249D] Index Trio
Score : points
Problem Statement
You are given an integer sequence of length .
Find the number of triplets of integers satisfying all of the conditions below.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
3
6 2 3
2
satisfy the conditions.
1
2
0
10
1 3 2 4 6 8 2 2 3 7
62