~/algor $ cat contests/round-7/AK
AK. Perimeter of a triangle
Problem AK
ICPC rules
1000 ms
64 MB
The vertices of a triangle on the plane are given: , and . Find its perimeter ; each side is the distance between two points:
Input
One line with six integers: , , , , and .
Output
One number — , with exactly 3 digits after the decimal point (for example, 12.000).
Note
The three points do not lie on one line.
Examples
Input #1
0 0 3 0 0 4
Output #1
12.000
Input #2
0 0 1 0 0 1
Output #2
3.414