loves clicking circles. Well, actually, he loves to play osu! whenever he can. osu! involves clicking circles, holding them while they move, and spinning circles; however, we will only be focussing on the clicking aspect today.
There will be circles in the map given to . If were to click them as accurately as possible, what would be the minimum distance (rounded to the nearest integer) his mouse cursor would travel?
Please note that
must click the circles in the order given, and that his cursor will start dead centre of the first circle appears.Input Specification
The first line of input will contain , the number of circles in the map.
The next lines of input will contain a pair of integers, and , the cartesian coordinates of the circle.
Output Specification
You are to output a single integer - the minimum distance
's cursor will travel, rounded down to the nearest integer.Sample Input
3
1 2
5 6
8 4
Sample Output
9
Comments