#P5525. [Ynoi2012] WC2016 充满了失望
[Ynoi2012] WC2016 充满了失望
Problem Description
In the 2D Cartesian coordinate system,
You are given points. These points are reachable. If points are reachable, then all points on the segment are also reachable.
You are given circles. Determine which circles satisfy that every point inside the circle is reachable.
Input Format
The first line contains an integer , which indicates the number of test cases.
Then there are test cases. For each test case:
The first line contains an integer .
The next lines each contain two integers , representing a point.
The next line contains an integer .
The next lines each contain three integers , representing a circle.
Output Format
For each test case, output one line: a 01 string of length , representing the answers (0 means there exists an unreachable point inside the circle, 1 means all points inside the circle are reachable).
1
8
1 10
1 -10
10 1
8 -5
-10 0
8 6
-4 8
-6 8
15
2 -1 3
8 -1 6
-7 -10 2
-10 -1 4
7 10 10
-1 -7 9
-5 0 5
-5 5 4
10 -7 4
-5 5 1
2 1 6
10 3 7
-2 0 3
-2 0 7
-9 -6 6
100000000110100
Hint
Idea: ccz181078, Solution: ccz181078, Code: ccz181078, Data: ccz181078.
Sample explanation:
The red points are the points given in the sample. The orange circles indicate queries with answer 1, and the blue circles indicate queries with answer 0.

Constraints: , , , , .
It is guaranteed that when changes by no more than , the answer does not change.
Translated by ChatGPT 5