- #include<bits/stdc++.h>
- #include<cmath>
- using namespace std;
- int main()
- {
- double a,b,c,s,r,red,rr,v,R;
- while(cin>>a>>b>>c){
- s=a+b+c;
- s=s/2;
- rr=sqrt(s*(s-a)*(s-b)*(s-c));
- r=rr/s;
- red=acos(-1);
- red=red*r*r;
- v=rr-red;
- R=(a*b*c)/(4*rr);
- R=acos(-1)*R*R;
- R=R-rr;
- printf("%0.4lf %0.4lf %0.4lf\n",R,v,red);
- }
- return 0;
- }
Sunday, 18 November 2018
uva problem 11152 Colourful Flowers solution
Subscribe to:
Post Comments (Atom)
variable declaration of c program
#include <stdbool.h> #include<bits/stdc++.h> #include <stdio.h> #include <string.h> #include <std...
-
#include<bits/stdc++.h> #include<cmath> #include<algorithm> #define mx 20000005 using namespace std ; ...
-
#include<stdio.h> #include<string.h> int main ( void ) { char y [ 100001 ] ; int m4,m100,m400,m15...
-
#include<bits/stdc++.h> using namespace std ; int main ( ) { int arr [ 10005 ] ; int n,m,mi,d ; ...
No comments:
Post a Comment