P12503 [AOJ] Laser Cutter
普及
题目描述

Example

Input

3
0 1
0 0 0 1
0 1 0 2
0 2 0 3

Output

6.0000000000000000

输入格式

见题面

输出格式

见题面

样例输入
3 0 1 0 0 0 1 0 1 0 2 0 2 0 3
样例输出
6.0000000000000000