Pro.ID22088 TitleThe Circumference of the Circle Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22088 AC17 Submit23 Ratio73.91% 时间&空间限制描述To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't? 输入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. 输出Description To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't? 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.0 0.0 0.5 Sample Output 3.14 Source 样例输入0.0 -0.5 0.5 0.0 0.0 0.5 样例输出3.14 作者 |