斐波纳契数列(清晰思路) 摘要:解题思路:,先观察,发现从第3项开始,每一项都等于前两项之和。注意事项:分好情况,n为,1,2,和大于2时。参考代码:#include <stdio.h>int main(){ int i, n…… 题解列表 2023年11月07日 0 点赞 0 评论 519 浏览 评分:9.9
白细胞计数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class The2908Test { public static void main(String…… 题解列表 2023年11月07日 0 点赞 0 评论 593 浏览 评分:0.0
[编程入门]三个数找最大值 摘要:解题思路:if-else注意事项:参考代码:a,b,c = map(int,input().split())if a>b: if a>c: print(a) else: …… 题解列表 2023年11月07日 1 点赞 0 评论 1017 浏览 评分:9.9
动态规划-大盗阿福 java.cui 摘要:解题思路: 理解题目意思后,写出推导式dp[j]=max(arr[j]+dp[j-2],dp[j-1])即可得出答案,这个过程需要多刷题才能有更深一步的体会。动态规划我现在做了几题,还处于入门阶段,…… 题解列表 2023年11月07日 0 点赞 0 评论 668 浏览 评分:9.9
求和训练(一般方法) 摘要:解题思路:拆分成三个累加求和,再求总和。注意事项:scanf函数的&不要忘记加,printf函数要控制输入保留两位小数。参考代码://[编程入门]求和训练#include <stdio.h>int m…… 题解列表 2023年11月07日 0 点赞 0 评论 594 浏览 评分:9.9
优质题解只有stdio.h 摘要:解题思路:注意事项:参考代码:#includeint main() { char equation[10]; int correct = 0; while (scanf("%s", …… 题解列表 2023年11月07日 0 点赞 0 评论 536 浏览 评分:9.9
[编程入门]求和训练 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a,b,c,an,bn,cn; an=0.00; bn=0.00; cn=0…… 题解列表 2023年11月07日 0 点赞 0 评论 527 浏览 评分:0.0
[编程入门]水仙花数判断 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,a,b,c; x=100; while(x<=99…… 题解列表 2023年11月07日 0 点赞 0 评论 519 浏览 评分:9.9
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n,Sn,a,b; a=1; b=1; Sn=0; s…… 题解列表 2023年11月07日 0 点赞 0 评论 520 浏览 评分:9.9
自定义函数写法 摘要:解题思路:自定义函数解法。注意事项:1不是完数。参考代码:#include <stdio.h>int is(int n);int main(void){ int i; for (i = 1…… 题解列表 2023年11月07日 0 点赞 0 评论 490 浏览 评分:0.0