#C2754. Robot Collision Detection
Robot Collision Detection
Robot Collision Detection
In this problem, you are given the coordinates and radii of two circular robots. Your task is to determine whether the two robots will collide. The collision occurs when the distance between the centers of the robots is less than or equal to the sum of their radii. Formally, let the centers be ((x_1,y_1)) and ((x_2,y_2)) with radii (r_1) and (r_2) respectively. A collision happens if $$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2} \leq r_1+r_2.$$ Otherwise, they do not collide.
inputFormat
The input consists of six floating-point numbers separated by spaces or newlines representing (x_1), (y_1), (r_1), (x_2), (y_2), and (r_2) respectively.
outputFormat
Output a single string: either "Collision" if the two robots collide, or "No Collision" if they do not.## sample
0 0 2 3 0 2
Collision