Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129940 刘子隽bylz 海伦公式 C++ 通过 100 0 MS 248 KB 207 2024-01-27 14:37:51

Tests(2/2):


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


测评信息: