Jayden-[解释通俗易懂,一看就会! ] 有规律的数列求和 解题思路:题目:有一分数序列:2/13/25/38/513/821/13......求出这个数列的前N项之和,保留两位小数。我们可以发现第n项的分母等于第(n-1)项的分子,第n项的分子等于第(n-1)项的分子与分母之和。(n>=2)注意事项:使用for循环求sum时, 题解列表 2024年02月25日 0 点赞 1 评论 636 浏览 评分:9.9
Jayden-[解释通俗易懂,一看就会! ] 水仙花数判断 摘要:解题思路:一个简单的for循环遍历每一个数字,根据公式判断是否满足水仙花数的条件。注意事项:注意遍历每一个数的个位、十位和百位的取值方法,有多种,不止以下代码中的一种哦。参考代码:#include<s…… 题解列表 2024年02月25日 0 点赞 1 评论 493 浏览 评分:9.9
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//定义初始化数组函数void init_arr(int *arr){ int i=0; while(arr[i]!=0) …… 题解列表 2024年02月25日 0 点赞 0 评论 511 浏览 评分:0.0
题解 2829: 数1的个数 摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win…… 题解列表 2024年02月24日 0 点赞 0 评论 597 浏览 评分:6.0
蓝桥杯历届试题-翻硬币(C++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>#include <string>using namespace std;int main(){ char a[10…… 题解列表 2024年02月24日 0 点赞 0 评论 471 浏览 评分:0.0
c++:通过ascll码来整合出数字之后拼凑起来即可 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdlib.h>#include<math.h>using namespace std;int main(){ i…… 题解列表 2024年02月24日 0 点赞 0 评论 534 浏览 评分:10.0
2841: 大整数加法python解法 解题思路:py可以直接处理大数注意事项:参考代码:a=int(input())b=int(input())print(a+b) 题解列表 2024年02月24日 0 点赞 0 评论 1010 浏览 评分:9.9
题解 2794: 求平均年龄 摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st…… 题解列表 2024年02月23日 0 点赞 0 评论 766 浏览 评分:6.0
类似1050题可解 摘要:解题思路:注意事项:部分地方还可以更精简参考代码:#include <stdio.h>#include <stdlib.h>typedef struct { char name[10]; char n…… 题解列表 2024年02月23日 0 点赞 0 评论 455 浏览 评分:9.9
编写一个程序,输入a,b,c三个值,输出其中最大值。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c); if(a<c&&b<c){ …… 题解列表 2024年02月23日 0 点赞 0 评论 550 浏览 评分:9.9