[编程入门]猴子吃桃的问题(运用数学方程思维) 摘要:解题思路:此题其实可以运用数学中的方程思维,求出前一天的桃子数。首先题目中说:“到第N天早上想再吃时,见只剩下一个桃子了。”,所以可以求出前一天的桃子数(x/2-1=1),以此倒推((1+1)×2=x…… 题解列表 2022年05月10日 0 点赞 0 评论 475 浏览 评分: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 评论 333 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:简单模拟注意事项:说30行是因为我的注释占了三行不算。参考代码:#include<bits/stdc++.h>using namespace std;int n,sum[3],maxn,cn…… 题解列表 2022年05月10日 0 点赞 0 评论 417 浏览 评分: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 评论 353 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10];int main() { for(int i=0;i…… 题解列表 2022年05月10日 0 点赞 0 评论 393 浏览 评分:0.0
[编程入门]报数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;scanf("%d",&n); …… 题解列表 2022年05月10日 0 点赞 0 评论 341 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 296 浏览 评分: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 评论 401 浏览 评分:0.0
[编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double x,b,c;int main(){ cin>>x; b=x…… 题解列表 2022年05月10日 0 点赞 0 评论 341 浏览 评分:0.0
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,a,x,y,d;int main(){ cin>>n…… 题解列表 2022年05月10日 0 点赞 0 评论 338 浏览 评分:0.0