题解列表

筛选

题解 1038: [编程入门]宏定义练习之三角形面积

摘要:解题思路:注意事项:1.根据题目给的公式,输入a,b,c分别为三角形的三条边,S为(a+b+c)/2(这个就是著名的海伦公式),置到这两个东西之后就可以直接求解area了,由于题目要求使用宏定义来写,……

编写题解 1267: A+B Problem

摘要:解题思路:设定一个整数“a”和“b”参考代码:#includeusing namespace std;int main(){    int a;    int b;    cin>>a>>b;    ……

题解 2768: 与圆相关的计算

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   double r;   scanf("%lf",&r);   pr……

答案之中的答案

摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){    int a,b,c;    cin>>a>>b>>c; ……

求圆的面积+公式

摘要:解题思路:圆面积=π*r*r注意事项:r=圆的半径参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){   ……

题解 2764: 带余除法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int a,b;   cin>>a>>b;   cout<<a/b……

题解 1669: 求圆的面积

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){    double r;    c……

2765: 计算分数的浮点数值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a,b;    cin>>a>>b; ……