2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,a…… 题解列表 2024年01月22日 0 点赞 0 评论 226 浏览 评分:0.0
三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3,d1,d2,d3,s;…… 题解列表 2023年07月12日 0 点赞 0 评论 263 浏览 评分:0.0
计算三角形面积(斯,好严格,除了输入的值,后面的值都得设双精度double,才能过) 摘要:解题思路: 难点在于是否记得海伦公式吧, 三角形面积公式: 先求周长 s=(a+b+c)/2; 面积 area=sqrt((s*(s-a)*(s-b)*(s-c))); 注意事项:…… 题解列表 2023年09月05日 0 点赞 0 评论 314 浏览 评分:0.0