题目链接:https://www.hackerrank.com/contests/iiitv-init-main-2019/challenges/love-triangle-1-4
题意:等边三角形,给出三角形中间随机一个点到三条边的距离、求该三角形面积
solution:
证明:
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
double a, b, c;
cin >> t;
while (t--){
scanf("%lf %lf %lf", &a, &b, &c);
printf("%.6lf\n", 1.0 / sqrt(3) * pow(a + b + c, 2));
}
return 0;
}