cookiebus 数三角形
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.
Background
陈老师在家没事干,于是开始数三角形。作为一个 ,他决定在 秒内数出所有三角形。请你写一个程序帮助他。
Description
给出四个整数 ,满足 ,求三边长分别为 并且满足 的非退化三角形(三顶点不共线)的个数。
Format
Input
一行四个整数:
Output
一行,输出满足条件的三角形个数。
Samples
1 2 3 4
4
1 2 2 5
3
Limitation
1s, 1024KiB for each test case.
- 对于的数据: ;
- 对于的数据: ;
- 对于的数据: ;
20241031周赛
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-10-31 16:45
- End at
- 2024-10-31 18:30
- Duration
- 1.8 hour(s)
- Host
- Partic.
- 16