405103: GYM101793 B Pen spinning accident

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

Description

B. Pen spinning accidenttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

See PDF statement in attachment.

ExamplesInput
1 0 0
0 0 1
1 0 0

0 1 0
0 1 0
0 0 1
Output
0.785398163397
Input
1 0 0
0 0 1
1 0 0

0 1 0
0 1 0
0 0 -1
Output
never
Input
0 0 0
1 0 0
0 1 0

0 0 1
0 1 0
-1 0 0
Output
never
Input
1 0 0
-1 0 -1
-1 0 1

0 1 0
0 1 0
0 0 1
Output
0.392699081699
Input
0 0 1
0 -1 1
0 1 1

-1 0 -1
-1 0 0
0 -1 0
Output
0.511669644114
Input
0 -1 0
-1 0 0
0 0 -1

1 0 0
0 0 -1
0 1 0
Output
0.785398163397

加入题单

上一题 下一题 算法标签: