编写题解 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
海伦公式秒杀 摘要:解题思路:注意事项:参考代码:import mathnum=list(map(float,input().split()))a=math.sqrt((num[3] - num[1]) ** 2 + (…… 题解列表 2024年11月30日 0 点赞 0 评论 188 浏览 评分: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
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,…… 题解列表 2023年01月31日 0 点赞 0 评论 166 浏览 评分:0.0
叉积求面积 摘要:解题思路:注意事项:参考代码:def Cross(x1,y1,x2,y2): return x1*y2-y1*x2x1,y1,x2,y2,x3,y3=map(float,input().spli…… 题解列表 2023年02月13日 0 点赞 0 评论 212 浏览 评分:0.0
八行简便 编写题解 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 评论 252 浏览 评分:0.0
计算三角形面积(斯,好严格,除了输入的值,后面的值都得设双精度double,才能过) 摘要:解题思路: 难点在于是否记得海伦公式吧, 三角形面积公式: 先求周长 s=(a+b+c)/2; 面积 area=sqrt((s*(s-a)*(s-b)*(s-c))); 注意事项:…… 题解列表 2023年09月05日 0 点赞 0 评论 158 浏览 评分:0.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 评论 198 浏览 评分: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 评论 113 浏览 评分:0.0
计算三角形面积 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc=new Sc…… 题解列表 2023年04月13日 0 点赞 0 评论 225 浏览 评分:0.0