Advertisement
erfanul007

LOJ 1043

Nov 27th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int T,i;
  6. scanf("%d",&T);
  7. for(i=1;i<=T;i++){
  8. double a,b,c,x;
  9. scanf("%lf %lf %lf %lf",&a,&b,&c,&x);
  10. x=sqrt(x/(x+1));
  11. a=a*x;
  12. printf("Case %d: %.8lf\n",i,a);
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement