文件名称:1403
介绍说明--下载内容均来自于网络,请自行研究使用
给出三维空间上的三个点,计算以这三个点为顶点的三角形的面积。 输入的第一行包含一个整数T (T > 0),表示一共有T组测试数据。
每组数据占三行,每行各描述了一个点的坐标。点的坐标会以x y z的形式给出,表示这个点的坐标为(x, y, z),其中x, y, z均为[-100, 100]范围内的浮点数。
对于每组测试数据,输出三角形的面积(和标准答案的误差不超过10-6即可)。
-Given three points on three-dimensional space, in order to calculate the three-point vertex of the triangle area. The first line of input contains an integer T (T> 0), T represents a total set of test data. Each set of data representing three rows, each row describes each coordinate of a point. Coordinates of the point will be given in the form xyz, represents coordinates of this point is (x, y, z), where x, y, z are floating point numbers in the range [-100, 100]. For each test, the output area of the triangle (and standard error of the answer can not exceed 10-6).
每组数据占三行,每行各描述了一个点的坐标。点的坐标会以x y z的形式给出,表示这个点的坐标为(x, y, z),其中x, y, z均为[-100, 100]范围内的浮点数。
对于每组测试数据,输出三角形的面积(和标准答案的误差不超过10-6即可)。
-Given three points on three-dimensional space, in order to calculate the three-point vertex of the triangle area. The first line of input contains an integer T (T> 0), T represents a total set of test data. Each set of data representing three rows, each row describes each coordinate of a point. Coordinates of the point will be given in the form xyz, represents coordinates of this point is (x, y, z), where x, y, z are floating point numbers in the range [-100, 100]. For each test, the output area of the triangle (and standard error of the answer can not exceed 10-6).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Untitled1.c
Untitled1.exe
Untitled1.o