[编程入门]猴子吃桃的问题(运用数学方程思维) 摘要:解题思路:此题其实可以运用数学中的方程思维,求出前一天的桃子数。首先题目中说:“到第N天早上想再吃时,见只剩下一个桃子了。”,所以可以求出前一天的桃子数(x/2-1=1),以此倒推((1+1)×2=x…… 题解列表 2022年05月10日 0 点赞 0 评论 322 浏览 评分:0.0
优质题解 [编程入门]有规律的数列求和 摘要:解题思路:当我们把分子和分母拆开来看时,可以发现各是一组斐波那契数列(a[i]=a[i-1]+a[i-2];),我们可以声明两个数组来存储这些数注意事项:注意数组要设定前三个数组元素的初始值(a[0]…… 题解列表 2022年05月10日 0 点赞 6 评论 3262 浏览 评分:7.6
LULU——题解 1015: [编程入门]求和训练 摘要:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int add1(int n1){ int i; in…… 题解列表 2022年05月10日 0 点赞 0 评论 225 浏览 评分:0.0
LULU——题解 1012: [编程入门]字符串分类统计 摘要:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int main(){ int num=0,lette…… 题解列表 2022年05月10日 0 点赞 0 评论 430 浏览 评分:9.9
敲七游戏C++(没对的进来) 摘要:解题思路:不对的99%都是漏了带有7的数字首先是7的倍数,n%7就可以得出;个位:只有7且恰好是7的倍数;十位:x7、7x(以下x均表示任意1-9) x7可以求末尾就行n%10=…… 题解列表 2022年05月10日 0 点赞 0 评论 1763 浏览 评分:6.8
数列问题C++超简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; int a[36]; a[1]=3;a[2]=…… 题解列表 2022年05月10日 0 点赞 0 评论 441 浏览 评分:0.0
数列有序C++超简单! 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,a[101]; while(cin>>n>>…… 题解列表 2022年05月10日 0 点赞 0 评论 253 浏览 评分:0.0
平方和与立方和C++超简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,x,y; while(scanf("%d%d…… 题解列表 2022年05月10日 0 点赞 0 评论 914 浏览 评分:7.3
小写转大写超简单! 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char s[81];//保存输入的字符串 …… 题解列表 2022年05月10日 0 点赞 0 评论 271 浏览 评分:0.0
找到经过顺序调整的关键词(C++代码) 摘要:注意事项:要考虑到可无限次输入参考代码:#include<iostream>#include<string>#include<vector>#include<sstream>#include<algo…… 题解列表 2022年05月10日 0 点赞 0 评论 310 浏览 评分:0.0