三角形的面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,y1,x2,y2,x3,y3,s,a,b,c,z; …… 题解列表 2022年11月01日 0 点赞 0 评论 611 浏览 评分:0.0
2774: 计算三角形面积 摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub…… 题解列表 2023年01月02日 0 点赞 0 评论 604 浏览 评分:0.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 评论 673 浏览 评分:0.0
海伦公式秒杀 解题思路:注意事项:参考代码:importmathnum=list(map(float,input().split()))a=math.sqrt((num[3]-num[1])**2+(num[2]-num[0])**2)b=math.sqrt((num[5]-num[1])**2+(num[4]-n 题解列表 2024年11月30日 0 点赞 0 评论 702 浏览 评分:0.0
java-计算三角形面积 ```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);doublex1=sc.nextDouble(), 题解列表 2024年09月05日 0 点赞 0 评论 684 浏览 评分: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 评论 542 浏览 评分: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 评论 645 浏览 评分:0.0
八行简便 编写题解 2774: 计算三角形面积 解题思路:海伦公式,p=0.5*(a+b+c)注意事项:importmath参考代码:importmathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt((x1-x2)**2+(y1-y2)**2)b=math.sqrt((x1-x3)* 题解列表 2024年04月04日 0 点赞 0 评论 721 浏览 评分:0.0
计算三角形面积 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc=new Sc…… 题解列表 2023年04月13日 0 点赞 0 评论 583 浏览 评分:0.0
题目 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1…… 题解列表 2024年02月28日 0 点赞 0 评论 534 浏览 评分:0.0