| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129919 | xujindong | 海伦公式 | C++ | Accepted | 100 | 0 MS | 248 KB | 191 | 2024-01-27 14:34:47 |
#include<bits/stdc++.h> using namespace std; double a,b,c,p; int main(){ cin>>a>>b>>c,p=(a+b+c)/2,cout<<setprecision(2)<<fixed<<"area="<<sqrt(p*(p-a)*(p-b)*(p-c))<<'\n'; return 0; }