2774: 计算三角形面积 摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub…… 题解列表 2023年01月02日 0 点赞 0 评论 253 浏览 评分:0.0
海伦公式秒杀 摘要:解题思路:注意事项:参考代码:import mathnum=list(map(float,input().split()))a=math.sqrt((num[3] - num[1]) ** 2 + (…… 题解列表 2024年11月30日 0 点赞 0 评论 448 浏览 评分:0.0
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3; double a,b…… 题解列表 2024年12月05日 1 点赞 0 评论 433 浏览 评分:0.0
计算三角形面积 摘要:#include <iostream>#include <cmath>#include <iomanip>using namespace std;int main(…… 题解列表 2025年10月23日 0 点赞 0 评论 101 浏览 评分:0.0
三角形的面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,y1,x2,y2,x3,y3,s,a,b,c,z; …… 题解列表 2022年11月01日 0 点赞 0 评论 378 浏览 评分:0.0
计算三角形面积 摘要:解题思路:运用求两点间距离公式和海伦公式注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,x…… 题解列表 2023年04月29日 0 点赞 0 评论 258 浏览 评分:2.0
感谢支持(谢谢) 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb,xc,yc; cin>>xa…… 题解列表 2023年04月29日 0 点赞 0 评论 245 浏览 评分:4.0
简单三角形面积c++题解(海伦公式) 摘要:解题思路:我们可以利用海伦公式#a,b,c 是三角形的边长#S 是面积我们可以利用勾股定理,求出边长。注意事项: 我们无法知道那个边是底和高,所以要用海伦公式参考代码:#include <iostre…… 题解列表 2023年01月15日 0 点赞 2 评论 811 浏览 评分:5.0
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3 = map(float,input().strip().split())a = math.sqrt((x1 - …… 题解列表 2024年01月15日 0 点赞 0 评论 386 浏览 评分:5.3
计算三角形面积,海伦公式 摘要:解题思路:海伦公式sprt(p(p-a)(p-b)(p-c)),p为三角形的半周长注意事项:涉及距离计算,最好用双精度变量进行存储参考代码:#include <stdio.h>#include <ma…… 题解列表 2023年02月15日 0 点赞 0 评论 413 浏览 评分:6.0