#P3268. [JLOI2016] 圆的异或并
[JLOI2016] 圆的异或并
Description
Given circles in the 2D Cartesian coordinate system. It is known that any two circles have no intersection points; that is, two circles are either disjoint or one contains the other. Compute the XOR area union of these circles.
The XOR area union is defined as follows: a region is counted if it lies inside an odd number of circles; otherwise, if it lies inside an even number of circles, it is not counted.
Input Format
The first line contains a positive integer , the number of circles.
Each of the next lines contains integers , representing a circle centered at with radius .
Constraints: , , .
Output Format
Output a single integer on one line: the result of the XOR area union of all circles divided by .
2
0 0 1
0 0 2
3
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号