题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)usi…… 题解列表 2023年12月02日 0 点赞 0 评论 351 浏览 评分:9.9
编写题解 2762: 计算(a+b)*c的值 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; int b; int c; cin>>a…… 题解列表 2023年12月02日 1 点赞 0 评论 583 浏览 评分:9.9
题解 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:输入三个正整数,取其第二个数字,即:a,b,c中的b;注意事项:别输错数,别选错语言(C++);参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2023年12月02日 0 点赞 0 评论 415 浏览 评分:9.9
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin>>a>>b…… 题解列表 2023年12月02日 0 点赞 0 评论 219 浏览 评分:9.9
题解 2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,n,m; cin>>a>>b>>n; …… 题解列表 2023年12月02日 0 点赞 0 评论 173 浏览 评分:9.9
题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:1.根据题目给的公式,输入a,b,c分别为三角形的三条边,S为(a+b+c)/2(这个就是著名的海伦公式),置到这两个东西之后就可以直接求解area了,由于题目要求使用宏定义来写,…… 题解列表 2023年12月02日 0 点赞 0 评论 214 浏览 评分:7.3
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin>>a>>b…… 题解列表 2023年12月02日 0 点赞 0 评论 227 浏览 评分:9.9
编写题解 1267: A+B Problem 摘要:解题思路:设定一个整数“a”和“b”参考代码:#includeusing namespace std;int main(){ int a; int b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 326 浏览 评分:9.9
题解 2768: 与圆相关的计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double r; scanf("%lf",&r); pr…… 题解列表 2023年12月02日 0 点赞 0 评论 405 浏览 评分:9.9
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月02日 0 点赞 0 评论 265 浏览 评分:6.0