[R3D]拼三角形
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.
时空限制
1S/512M
题目描述
给定 根编号不同的小木棒的长度 ,从中选出三根搭成一个面积大于 的三角形,求有多少种方案。
格式
输入格式
第一行包含一个整数 ,表示木棍数量。
第二行包含 个正整数 ,表示每根木棍的长度。
输出格式
输出一个整数,表示能搭成面积大于 的三角形的方案数量。
样例
样例输入 #1
7
4 1 5 4 1 1 4
样例输出 #1
14
数据规模
对于 的数据,。
对于 的数据,。
另有 的数据, 。
对于 的数据,,。
代码源挑战赛 Round 3
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-3-14 20:00
- End at
- 2025-3-14 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 502