两种方法求解三角形面积 摘要:解题思路:直接在宏中定义出来即可注意事项:输出是需要保留小数点后3位参考代码://方法1:#include<bits/stdc++.h>#include<iostream>using namespac…… 题解列表 2024年01月21日 0 点赞 0 评论 306 浏览 评分:0.0
普普通通的恒定义求三角形面积 摘要:解题思路:按题意进行要加上数学函数math.h 和求平方根sqrt注意事项:都为小数参考代码: #include<stdio.h> #include<math.h> #define…… 题解列表 2023年12月23日 0 点赞 0 评论 178 浏览 评分:0.0
题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:1.根据题目给的公式,输入a,b,c分别为三角形的三条边,S为(a+b+c)/2(这个就是著名的海伦公式),置到这两个东西之后就可以直接求解area了,由于题目要求使用宏…… 题解列表 2023年12月23日 0 点赞 0 评论 447 浏览 评分:9.9
C++宏三角形面积 简单易懂 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>#include <iomanip>#define area sqrt(s*(s-a)*(s-b)*…… 题解列表 2023年12月18日 0 点赞 0 评论 1002 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >> a>…… 题解列表 2023年12月16日 0 点赞 0 评论 141 浏览 评分:0.0
宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define bian(a,b,c) S=(a+b+c)/2;#define mianji(a,b,c…… 题解列表 2023年12月13日 0 点赞 0 评论 301 浏览 评分:0.0
宏定义练习之三角形面积(Java代码) 摘要: import java.util.Scanner; public class L1038 { public static void main(String[] args)…… 题解列表 2023年12月07日 0 点赞 0 评论 180 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:p=sqrt(s*(s-a)*(s-b)*(s-c));是海伦公式参考代码:#include <bits/stdc++.h>using namespace std;int main…… 题解列表 2023年12月03日 0 点赞 0 评论 243 浏览 评分:9.9
题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:套两个公式。。。注意事项:不要抄袭,会遭报应的。参考代码:#inalude <bits..tdc++.h>usisg namespdce stb;doable a,b,c,s,j,y;int…… 题解列表 2023年12月03日 0 点赞 0 评论 346 浏览 评分:6.0
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double s,a,b,c; cin>>a>…… 题解列表 2023年12月03日 0 点赞 0 评论 166 浏览 评分:0.0