Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129941 梁煜然 海伦公式 C++ 通过 100 0 MS 248 KB 224 2024-01-27 14:37:56

Tests(2/2):


#include<iostream> #include<math.h> using namespace std; int main(){ float a,b,c,p,z,y; cin>>a>>b>>c; p=(a+b+c)/2; z=p*(p-a)*(p-b)*(p-c); y=sqrt(z); cout.precision(2); cout<<"area="<<fixed<<y; return 0; }


测评信息: