#P6875. [COCI 2013/2014 #6] KRUŽNICE
[COCI 2013/2014 #6] KRUŽNICE
Problem Description
There are pairwise non-overlapping circles centered on the axis, but their circumferences may touch. How many regions do these circles divide the plane into?
Input Format
The first line contains an integer , the number of circles.
Each of the next lines contains two integers and , where is the coordinate of the center of the -th circle, and is its radius.
All circles in the input are guaranteed to be unique.
Output Format
Output the number of regions into which these circles divide the plane.
2
1 3
5 1
3
3
2 2
1 1
3 1
5
4
7 5
-9 11
11 9
0 20
6
Hint
Sample Explanation
Explanation for Sample 3
This sample corresponds to the figure below:

Constraints
- For of the testdata, .
- For of the testdata, , , .
Notes
Translated from COCI2013-2014 CONTEST #6 T4 KRUŽNICE.
Translated by ChatGPT 5