- #include<stdio.h>
- #include<math.h>
- int main()
- {
- long long test, t;
- double AB, AC, BC, AD, ratio, ratio2;
- scanf("%lld", &test);
- for(t=1; t<=test; t++)
- {
- scanf("%lf%lf%lf%lf", &AB, &AC, &BC, &ratio);
- ratio2 =ratio/(ratio+1);
- AD = AB*sqrt(ratio2);
- printf ("Case %lld: %lf\n", t, AD);
- }
- return 0;
- }
Thursday, May 7, 2015
1043 - Triangle Partitioning (Light OJ)
Subscribe to:
Post Comments (Atom)
Compare equality of two string in C
#include <stdio.h> #include<string.h> int main() { char* country = "Bangladesh"; char* country2; ...
-
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespac...
-
#include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<cstring> #include<ve...
-
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> using namespace std; #define pf printf ...
comdenKapse_1986 James Waheed DesignCAD 3D Max
ReplyDeleteSpeedify
Winamp Pro
derolana