#P1026. Perimeter of Rectangles

    ID: 27 远端评测题 1000ms 128MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>深圳技术大学第一届程序设计竞赛(SZTUCPC2021)

Perimeter of Rectangles

Description

Given three points of a rectangle, calculate the perimeter of it.

Input

There are multiple test cases.

In each case, three integer coordinates are given to describe the rectangle, i.e. (x1, y1), (x2, y2), (x3, y3).

0 <= x1, y1, x2, y2, x3, y3 <= 10000.

Output

Output the perimeter of the rectangle corresponding to each test case.

The result should be accurated to three decimal places.

0 0 2 1 2 0
1 1 0 2 2 4
6.000
8.485