| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129993 | 冯思诚 | 海伦公式 | C++ | Accepted | 100 | 0 MS | 252 KB | 232 | 2024-01-27 14:51:34 |
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { double a,b,c,p,ABC; cin>>a>>b>>c; p=(a+b+c)/2; ABC=sqrt(p*(p-a)*(p-b)*(p-c)); cout<<"area="; printf("%.2f\n",ABC); return 0; }