eolymp
bolt
Try our new interface for solving problems
Problems

Two circles

Two circles

\includegraphics{https://static.eolymp.com/content/1a/1a274ceccb52211fcef916274c94b59d970b441a.png} Determine at how many points two circles intersect. \InputFile 6 numbers $x_1$, $y_1$, $r_1$, $x_2$, $y_2$, $r_2$, where $x_1$, $y_1$, $x_2$, $y_2$ are the coordinates of the centers of the circles, $r_1 $, $r_2$ are their radii. All numbers are real, do not exceed $1000000000$ modulo, and are specified with no more than $3$ decimal places. \OutputFile Output a single number, the number of intersection points. If the number of points is infinite, output $-1$.
Time limit 1 second
Memory limit 64 MiB
Input example #1
0 0 5 5 0 1
Output example #1
2