#P15768. [JAG 2025 Summer Camp #2] Triangles
[JAG 2025 Summer Camp #2] Triangles
题目描述
You are given distinct points on a 2D plane. The -th point is located at .
For each integer , let be the maximum number of non-degenerate triangles you can place under the following conditions:
- You add new points on the plane such that all points are distinct.
- Each triangle has its vertices among the points.
- No two triangles have an intersection with a positive area.
Compute $\left(\sum \limits_{k=1}^{K} f(k)\right) \mod 998244353$.
输入格式
The input consists of a single test case in the following format.
$$\begin{aligned} & N \ K \\ & x_1 \ y_1 \\ & \vdots \\ & x_N \ y_N \end{aligned} $$The first line contains two integers and (, ), representing the number of points and the maximum value of . Each of the next lines contains two integers and (), representing the coordinates of the -th point. It is guaranteed that all points are distinct.
输出格式
Print the answer.
5 1
0 0
0 20
20 20
20 0
10 10
6
5 20250914
0 0
0 100
20 25
9 14
50 0
894241420