Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
20864 | 张承志 | 三角形面积 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 255 | 2021-06-20 18:15:09 |
#include <iostream> #include <cmath> using namespace std; int main() { float a,b,c,m,s; cout<<"请输入三边"<<endl; cin>>a>>b>>c; { m=(a+b+c)/2; s=sqrt(m*(m-a)*(m-b)*(m-c)); } cout<<"面积为:"<<s<<endl; return 0; }