#P1652. 圆
圆
Description
You are given circles, and it is guaranteed that any two circles do not intersect and are not tangent.
You are then given two points , both guaranteed to be not on any circle. Now you want to draw a curve from . What is the minimum number of times this curve must cross the boundaries of the circles?
Input Format
- The first line contains an integer , the number of circles.
- The second line contains integers, the -coordinates of the circles.
- The third line contains integers, the -coordinates of the circles.
- The fourth line contains integers, the radii of the circles.
- The fifth line contains four integers .
Output Format
Output a single integer, the minimum number of times the curve must cross the boundaries of the circles.
7
1 -3 2 5 -4 12 12
1 -1 2 5 5 1 1
8 1 2 1 1 1 2
-5 1 12 1
3
Hint
Constraints
For of the testdata, , , .
It is guaranteed that no two circles share any point.
Translated by ChatGPT 5
京公网安备 11011102002149号