wojiaocbj

Problem.B

Jun 9th, 2022
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     double a, b, c, p;
  4.     int n;
  5.     scanf("%d", &n);
  6.     while(n--){
  7.         scanf("%lf%lf%lf", &a, &b, &c);
  8.         p = (a + b + c) / 2;
  9.         printf("%.1f\n", p * (p - a) * (p - b) * (p - c));
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment