2517 - 矩形覆盖

Input

Output

Examples

Input

1
1 2 2
1 1 1

Output

1.414
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题