编写题解 2774: 计算三角形面积(java) 摘要:解题思路:考虑到可能存在有的三角形不规则,三角形的高不是那么好找,我们可以用海伦公式来求解注意事项:用double 类型的数据参考代码:import java.util.Scanner; pub…… 题解列表 2024年04月06日 0 点赞 0 评论 464 浏览 评分:9.9
八行简便 编写题解 2774: 计算三角形面积 摘要:解题思路:海伦公式,p=0.5*(a+b+c)注意事项:import math参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a…… 题解列表 2024年04月04日 0 点赞 0 评论 473 浏览 评分:0.0
题目 2774: 计算三角形面积 摘要:解题思路:两个公式 三角形面积s=(p*(p-a)*(p-b)*(p-c))开根号 其中a,b,c为三角形三条边,其中p=(a+b+c)/2注意事项:注意数据类型,还有输出的面积保留的小数位数参考代…… 题解列表 2024年02月29日 0 点赞 0 评论 457 浏览 评分:9.9
题目 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1…… 题解列表 2024年02月28日 0 点赞 0 评论 233 浏览 评分:0.0
已知三点求面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 615 浏览 评分:6.0
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+…… 题解列表 2024年02月26日 0 点赞 0 评论 324 浏览 评分: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 评论 226 浏览 评分:0.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
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年01月05日 0 点赞 0 评论 296 浏览 评分:9.9
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,a…… 题解列表 2023年12月16日 0 点赞 0 评论 317 浏览 评分:9.9