问题2913--A Angle between two lines in space

2913: A Angle between two lines in space

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

calculate the angle between two vector in space. The vector is give by two points on it.

输入

There are multiple test cases,each test case is in two vector. Each vecotr gives two different point. Point is give as x,y,z.(x,y,z are real numbers).

输出

Put one line for each test case, show in degree measure, and correct to two decimal places.(0.00 <=angle <= 180.00)

样例输入 Copy

0.00 0.00 0.00 0.00 0.00 1.00
0.00 0.00 0.00 1.00 0.00 0.00

样例输出 Copy

90.00

提示

(0,0,0) and (0,0,1) tells the vector one (0,0,0) and (1,0,0) tells the vector two the angle between them is 90 ° we consider Pi = acos(-1);

来源/分类

tyh