题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:1.根据题目给的公式,输入a,b,c分别为三角形的三条边,S为(a+b+c)/2(这个就是著名的海伦公式),置到这两个东西之后就可以直接求解area了,由于题目要求使用宏定义来写,…… 题解列表 2023年12月02日 0 点赞 0 评论 234 浏览 评分:7.3
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin>>a>>b…… 题解列表 2023年12月02日 0 点赞 0 评论 249 浏览 评分: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 评论 344 浏览 评分:9.9
题解 2768: 与圆相关的计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double r; scanf("%lf",&r); pr…… 题解列表 2023年12月02日 0 点赞 0 评论 434 浏览 评分:9.9
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月02日 0 点赞 0 评论 293 浏览 评分:6.0
求圆的面积+公式 摘要:解题思路:圆面积=π*r*r注意事项:r=圆的半径参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){ …… 题解列表 2023年12月02日 0 点赞 0 评论 501 浏览 评分:0.0
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年12月02日 0 点赞 0 评论 348 浏览 评分:9.9
题解 1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){ double r; c…… 题解列表 2023年12月02日 0 点赞 0 评论 587 浏览 评分:9.9
2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 387 浏览 评分:9.9
编写题解 2760: 整型与布尔型的转换 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<(…… 题解列表 2023年12月02日 0 点赞 0 评论 316 浏览 评分:9.9