Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129954 黄子轩 海伦公式 C++ Accepted 100 0 MS 244 KB 212 2024-01-27 14:39:29

Tests(2/2):


#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ float a,b,c,p,n; cin>>a>>b>>c; p=(a+b+c)/2; n=sqrt(p*(p-a)*(p-b)*(p-c)); printf("area="); printf("%.2f",n); }


Judgement Protocol: