首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
poj2242
】的更多相关文章
POJ2242 The Circumference of the Circle(几何)
题目链接. 题目大意: 给定三个点,即一个任意三角形,求外接圆的周长. 分析: 外接圆的半径可以通过公式求得(2*r = a/sinA = b/sinB = c/sinC),然后直接求周长. 注意: C++AC,G++WA. #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> using namespace std…
【POJ2242】The Circumference of the Circle(初等几何)
已知三点坐标,算圆面积. 使用初等几何知识,根据海伦公式s = sqrt(p(p - a)(p - b)(p - c)) 和 外接圆直径 d = a * b * c / (2s) 来直接计算. #include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <numeric> #include <cctype> #include…
poj2242
The Circumference of the Circle Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7032 Accepted: 4361 Description To calculate the circumference of a circle seems to be an easy task - p…