[编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double x,b,c;int main(){ cin>>x; b=x…… 题解列表 2022年05月10日 0 点赞 0 评论 312 浏览 评分:0.0
最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ if(b==0) return a; r…… 题解列表 2022年05月10日 0 点赞 0 评论 368 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 252 浏览 评分:0.0
[编程入门]报数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;scanf("%d",&n); …… 题解列表 2022年05月10日 0 点赞 0 评论 309 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10];int main() { for(int i=0;i…… 题解列表 2022年05月10日 0 点赞 0 评论 331 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> #define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)us…… 题解列表 2022年05月10日 0 点赞 0 评论 290 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:简单模拟注意事项:说30行是因为我的注释占了三行不算。参考代码:#include<bits/stdc++.h>using namespace std;int n,sum[3],maxn,cn…… 题解列表 2022年05月10日 0 点赞 0 评论 386 浏览 评分:0.0
自定义函数之数字后移 摘要:#include void f(); int main() { f(); return 0; } void f() { int a[100],i,w,z,p,j,b[100…… 题解列表 2022年05月10日 0 点赞 0 评论 295 浏览 评分:0.0
[编程入门]猴子吃桃的问题(运用数学方程思维) 摘要:解题思路:此题其实可以运用数学中的方程思维,求出前一天的桃子数。首先题目中说:“到第N天早上想再吃时,见只剩下一个桃子了。”,所以可以求出前一天的桃子数(x/2-1=1),以此倒推((1+1)×2=x…… 题解列表 2022年05月10日 0 点赞 0 评论 411 浏览 评分:0.0
优质题解 [编程入门]有规律的数列求和 摘要:解题思路:当我们把分子和分母拆开来看时,可以发现各是一组斐波那契数列(a[i]=a[i-1]+a[i-2];),我们可以声明两个数组来存储这些数注意事项:注意数组要设定前三个数组元素的初始值(a[0]…… 题解列表 2022年05月10日 0 点赞 6 评论 3410 浏览 评分:7.6