405102: GYM101793 A Sledding down the mountain

Memory Limit:256 MB Time Limit:12 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Sledding down the mountaintime limit per test12 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

See PDF statement in attachment.

ExamplesInput
1
0 0 0
1 -1 -1
1 1 1
Output
0.707106781187
Input
3
1 2 1
0 2 2
1 1 1
1 1 1
2 2 2
1 2 1
0 0 -1
1 1 1
0 2 2
Output
1.247219128925
Input
2
1 0 1
0 0 0
1 -1 -1
1 -1 -1
0 0 0
0 -1 1
Output
1.837117307087

加入题单

上一题 下一题 算法标签: