麻烦翻译一下这个 C语言试题!

来源:百度知道 编辑:UC知道 时间:2024/05/13 19:59:12
To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't?

You are given the cartesian coordinates of three non-collinear points in the plane.
Your job is to calculate the circumference of the unique circle that intersects all three points.

Input

The input will contain one or more test cases. Each test case consists of one line containing six real numbers x1,y1, x2,y2,x3,y3, representing the coordinates of the three points. The diameter of the circle determined by the three points will never exceed a million. Input is terminated by end of file.

Output

For each test case, print one line containing one real number telling the circumference of the circle determined by the three points. The circumference is to be printed accurately rounded to two decimals. The value of pi is approximately 3.141592653589793.

Sample Input

0.0 -0.5 0.5 0

如果给了你直径,让你计算圆的周长,对你来说那是很简单的事,要是不这样呢?

现在给你的是,平面上不在一条直线上的三个点的(直角坐标系)坐标.

你的任务是计算通过这三个点的唯一的那个圆的周长.

输入

输入含有1个或多个计算情况. 每个情况一行,一行有6个实数, x1,y1, x2,y2,x3,y3,表示该计算情况的3个点的坐标.过这3点的圆的直径不超过一百万.输入文件结束符是EOF.

输出

每个计算情况输出一行,含一个实数,就是过三点的圆的周长.精度为小数点下两位.圆周率用近似值3.141592653589793.

Sample Input 输入例子
...
Sample Output 输出例子
...

自己去翻译一下被...
知道个大概意思就能做出来..

http://www.hao123.com/ss/fy.htm