1 条题解
-
-15
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { double a,b,c; cin>>a>>b>>c; if(a+b > c && a+c > b && b+c>a) { double p = (a+b+c) / 2; double s = sqrt(p*(p-a)*(p-b)*(p-c)); cout<<fixed<<setprecision(1)<<s; } else cout<<0; return 0; }
- 1
信息
- ID
- 13
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 5
- 标签
- 递交数
- 180
- 已通过
- 75
- 上传者