uva375专题

Uva375

等腰三角形的内切圆,再在内切圆的基础上做内切圆,此内切圆圆前一个内切圆相切,以此类推,直到内切圆的半径达到所要的精度! #include<stdio.h> #include<math.h> const double pi=4.0*atan(1.0); int main() {     double H,B,a,b,r,n;     scanf("%lf\n",&n);     while(n--

UVA375 Inscribed Circles and Isosceles Triangles

思路:简单几何题.... #include <cstdio>#include <cmath>using namespace std;const double pi = atan(1.0) * 4;double b, h, l, th, r, k;int main() {int n;scanf("%d", &n);while (n--) {scanf("%lf%lf", &b, &