题解 2774: 计算三角形面积(海伦公式)-详解 摘要:解题思路:1.输入部分:使用scanf函数读取三个点的坐标。2.计算三边长度:使用两点间距离公式(x2−x1)2+(y2−y1)2计算三角形的三边长度。…… 题解列表 2025年03月11日 2 点赞 0 评论 334 浏览 评分:10.0
题目2774:计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float x1,y1,x2,y2,x3,y3; dou…… 题解列表 2025年02月26日 1 点赞 0 评论 165 浏览 评分:10.0
海伦公式计算三角形面积 摘要:解题思路:注意事项:计算值要设置为double参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, flo…… 题解列表 2023年09月18日 0 点赞 0 评论 791 浏览 评分:9.9
计算三角形面积(超标准答案) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double distance(float x1, float y1, float x2, fl…… 题解列表 2024年08月02日 1 点赞 0 评论 417 浏览 评分:9.9
计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, float x2, float …… 题解列表 2023年11月13日 0 点赞 3 评论 608 浏览 评分:9.9
2774: 计算三角形面积(把公式记错了) 摘要:```cpp #include #include int main() { double p; double S; double a,b,c; double x1,x2,x3,…… 题解列表 2022年12月30日 0 点赞 0 评论 476 浏览 评分:9.6
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项: 定义成double类型是全对,定义成float类型是64分,所以要用double类型。参考代码:#include<stdio.h>#include<math.h>int main…… 题解列表 2022年12月12日 0 点赞 0 评论 351 浏览 评分:9.5
计算三角形面积 摘要: ```c #include #include int main() {…… 题解列表 2023年07月22日 0 点赞 0 评论 364 浏览 评分:9.0
计算三角形面积 摘要:#include<stdio.h>#include<math.h> //主要是用pow函数double changdu(double x1,double x2,double y1,double y2)…… 题解列表 2024年08月31日 0 点赞 0 评论 147 浏览 评分:8.0
计算三角形面积 摘要:解题思路:海伦公式S=1/4√(a+b+c)(a+b-c)(a+c-b)(b+c-a)注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2022年11月11日 0 点赞 0 评论 540 浏览 评分:8.0