Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129983 陈航 计算平均分 C++ 解答错误 0 0 MS 248 KB 198 2024-01-27 14:46:14

Tests(0/4):


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


测评信息: