Amr and Pins

From Codeforces 507B. A circle has radius r and its centre is initially at (x,y). In one move, a pin is placed on the circumference and the circle is rotated around that pin. The centre can move by at most the diameter 2r in one move. Return the minimum number of moves needed to bring the centre to (x1,y1). The platform passes the five values as [r,x,y,x1,y1].

Examples
Input: [1,-500,300,-500,300]
Output: 0
Hints

Amr and Pins

**From Codeforces 507B.** A circle has radius `r` and its centre is initially at `(x,y)`. In one move, a pin is placed on the circumference and the circle is rotated around that pin. The centre can move by at most the diameter `2r` in one move. Return the minimum number of moves needed to bring the centre to `(x1,y1)`. The platform passes the five values as `[r,x,y,x1,y1]`.