#P3997. [SHOI2013] 扇形面积并
[SHOI2013] 扇形面积并
Description

Given concentric sectors, find how much area is covered by at least sectors.
Input Format
The first line contains three integers , , . Here, is the number of concentric sectors, and means the angle interval is evenly divided into parts.
From the second line, each of the next lines contains three integers . Each line describes a sector centered at the origin with radius , whose central angle ranges from radians to ( is not necessarily less than ).
Output Format
Output an integer , such that equals the total area covered by at least sectors.
It is guaranteed that the answer is within the range .
3 8 2
1 -8 8
3 -7 3
5 -5 5
76
2 4 1
4 -4 2
1 -4 4
98
Hint
For of the testdata, , , , , .
Translated by ChatGPT 5
京公网安备 11011102002149号