#include <cmath> #include <iomanip> using namespace std; int main(){ double a,b,c,p,s,x; cin>>a>>b>>c; p=(a+b+c)/2; x=p*(p-a)*(p-b)*(p-c); s=sqrt(x); cout<<fixed<<setprecision(3)<<s<<endl; return 0; }
离谱
註冊一個 9minute 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 9minute 通用賬戶