标签:style blog class c code java
1 1 1 2 2 1 0 0
3 6 4
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 double w, h; 6 while( scanf ("%lf%lf", &w, &h) != EOF && w && h ) 7 { 8 double x, y; 9 x = w * 2 / 3; 10 y = 2*sqrt(x*x/4.0+h*h) + sqrt( (w/ 3.0) * (w/ 3.0 ) + h*h ); 11 printf("%.0lf\n", y); 12 } 13 return 0; 14 }
标签:style blog class c code java
原文地址:http://www.cnblogs.com/a604378578/p/3744897.html