编写题解 2774: 计算三角形面积 解题思路:注意事项:参考代码:importmathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+math.pow(y1-y2,2))b=math.sqrt(math.pow(x2-x3, 题解列表 2024年02月26日 0 点赞 0 评论 582 浏览 评分:0.0
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,a…… 题解列表 2024年01月22日 0 点赞 0 评论 476 浏览 评分: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 评论 481 浏览 评分:0.0
计算三角形面积(斯,好严格,除了输入的值,后面的值都得设双精度double,才能过) 解题思路:难点在于是否记得海伦公式吧,三角形面积公式:先求周长s=(a+b+c)/2;面积area=sqrt((s*(s-a)*(s-b)*(s-c)));注意事项:小心数据类型,这个卡了我短时间,有点坑,不过长记性了参考代码:```c#include#includeintmain(){floatx1 题解列表 2023年09月05日 0 点赞 0 评论 619 浏览 评分:0.0