| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129994 | 冯晨硕 | 海伦公式 | C++ | Accepted | 100 | 0 MS | 244 KB | 227 | 2024-01-27 14:51:38 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; double p=(a+b+c)/2; cout<<"area="; cout<<setiosflags(ios::fixed)<<setprecision(2)<<sqrt(p*(p-a)*(p-b)*(p-c))<<endl; return 0; }