三元组
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
有一个长度为 的正整数序列 。
询问有多少个三元组 满足
输入格式
从文件 中输入数据。
第一行一个正整数 。
第二行 个正整数
输出格式
输出到文件 中。
只有一行一个整数,为答案
样例1输入
3
6 2 3
样例1输出
2
样例2输入
10
1 3 2 4 6 8 2 2 3 7
样例2输出
62
数据范围
对于 的数据,保证 。
对于另外 的数据,保证 。
对于另外 的数据,保证 。
对于 的数据,保证 。
8.27精英班模拟赛补题
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2023-8-28 18:00
- End at
- 2023-9-10 6:00
- Duration
- 300 hour(s)
- Host
- Partic.
- 8