题解 2774: 计算三角形面积

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2774: 计算三角形面积

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double x1,y1,x2,y2,x3,y3,a……

2774: 计算三角形面积

摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub……

计算三角形面积

摘要:#include <iostream>#include <cmath>#include <iomanip>using namespace std;int main(……

2774: 计算三角形面积

摘要:解题思路:注意事项:接收输入用单精度,运算用双精度(有多次开方运算),避免丢失精度。借助海伦公式,可自行查询,这里不在过多赘述。可直接使用。参考代码:#include<iostream>#……

三角形的面积

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double x1,y1,x2,y2,x3,y3,s,a,b,c,z;  ……

计算三角形面积

摘要:解题思路:运用求两点间距离公式和海伦公式注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double xa,x……

感谢支持(谢谢)

摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){    double xa,ya,xb,yb,xc,yc;    cin>>xa……

简单三角形面积c++题解(海伦公式)

摘要:解题思路:我们可以利用海伦公式#a,b,c 是三角形的边长#S 是面积我们可以利用勾股定理,求出边长。注意事项: 我们无法知道那个边是底和高,所以要用海伦公式参考代码:#include <iostre……

2774: 计算三角形面积

摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3 = map(float,input().strip().split())a = math.sqrt((x1 - ……