题解 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
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3; double a,b…… 题解列表 2024年12月05日 1 点赞 0 评论 224 浏览 评分:0.0
java-计算三角形面积 摘要:```java import java.util.Scanner; public class Main{ public static void main(String[] args){ …… 题解列表 2024年09月05日 0 点赞 0 评论 256 浏览 评分:0.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
计算三角形面积(超标准答案) 摘要:解题思路:注意事项:参考代码:#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>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 482 浏览 评分:6.0
计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, float x2, float …… 题解列表 2023年11月13日 0 点赞 3 评论 608 浏览 评分:9.9
海伦公式计算三角形面积 摘要:解题思路:注意事项:计算值要设置为double参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, flo…… 题解列表 2023年09月18日 0 点赞 0 评论 791 浏览 评分:9.9
计算三角形面积(斯,好严格,除了输入的值,后面的值都得设双精度double,才能过) 摘要:解题思路: 难点在于是否记得海伦公式吧, 三角形面积公式: 先求周长 s=(a+b+c)/2; 面积 area=sqrt((s*(s-a)*(s-b)*(s-c))); 注意事项:…… 题解列表 2023年09月05日 0 点赞 0 评论 158 浏览 评分:0.0