#P8222. [WFOI - 02] I wanna escape the shadow(阴影)
[WFOI - 02] I wanna escape the shadow(阴影)
Background
Define adventure with death
You are the shadow to my life
The background suddenly became gloomy, but kid knows clearly: this is the darkest moment, and also the time right before dawn.
Problem Description
Now kid is inside a circle with center and radius , and has learned a new operation mklig(X,Y,Z) to remove the darkness, described as follows.
are three distinct points. Draw the rays and , and let the two rays intersect the circle at . Then the region enclosed by the arc and the segments and is lit up.
Now there are some points inside the circle. Let be the total lit area when the circle radius is . Now kid wants to know, when making (which can be understood as when goes to infinity) as large as possible, what is the minimum number of mklig operations needed. You only need to output the answer; leave the remaining operations to €€£!
The testdata guarantees that no three points are collinear.
Input Format
This problem contains multiple test cases.
The first line contains an integer , the number of test cases.
For each test case:
The first line contains a positive integer .
The next lines each contain two integers, representing the and coordinates of a point.
Output Format
Output lines, each containing one integer, the answer.
1
3
0 0
0 2
-1 1
3
Hint
-
Sample Explanation

This problem uses bundled Subtasks for testing.
- : and the data is random.
- : .
- : .
Constraints: For each test point, it is guaranteed that and . The absolute value of each point’s coordinates does not exceed .
Translated by ChatGPT 5