获取n个斐波那契数列 摘要:解题思路:通过for循环来达到只获取n个斐波那契数列注意事项:参考代码:#include<stdio.h>#define N 40int fblq(int x){ …… 题解列表 2025年12月24日 0 点赞 0 评论 187 浏览 评分:0.0
循环累乘法实现复利 摘要:解题思路:注意事项:百分数要转换成小数参考代码:#include<stdio.h>#include<math.h>int main(){ int R=0,M=0,Y=0; sc…… 题解列表 2025年12月24日 0 点赞 0 评论 98 浏览 评分:0.0
pow函数实现复利增长公式 摘要:解题思路:注意事项:Pn = P0 * (1 + r) ^ n(复利增长公式)参考代码:#include<stdio.h>#include<math.h>int main(){…… 题解列表 2025年12月24日 0 点赞 0 评论 115 浏览 评分:0.0
循环+累乘解乘方an 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=0,n=0; scanf("%d %d",&a,&n…… 题解列表 2025年12月24日 0 点赞 0 评论 114 浏览 评分:0.0
用C语言实现求偶数和的程序 摘要:解题思路:“求偶数和” 的核心意思是:从你输入的这n个整数中,先筛选出所有满足 “偶数” 条件的数字(能被 2 整除的整数),然后将这些筛选出来的偶数进行累加,最终得到的累加结果就是 “偶数和”。注意…… 题解列表 2025年12月23日 0 点赞 0 评论 155 浏览 评分:0.0
方法:一次遍历找双极值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0; scanf("%d",&n); int scores…… 题解列表 2025年12月23日 0 点赞 0 评论 129 浏览 评分:0.0
2838: 有趣的跳跃 摘要:解题思路:直接看代码注释吧注意事项:注意差值一定不能重复,用一个数组去标记差值。分一个数和多个数两种情况讨论。差值是有n-1个的,比如n=4,那么就有4个数,会产生3个差值。而且题目是允许不排序的,所…… 题解列表 2025年12月23日 1 点赞 0 评论 149 浏览 评分:10.0
1099: 校门外的树 摘要:解题思路:直接看代码注释吧注意事项:参考代码:#include<stdio.h>intmain(){int …… 题解列表 2025年12月23日 2 点赞 0 评论 207 浏览 评分:10.0
C语言两种方法解题 摘要:# //方法一:用switch...case语句/#includeint main(){ int score; scanf("%d",&score); /…… 题解列表 2025年12月22日 0 点赞 0 评论 228 浏览 评分:0.0
C语言+自定义函数求解一元二次方程 摘要:解题思路:注意事项:1. 一元二次方程一般形式:ax² + bx + c = 0(a不能等于0)2. 关键判别式:Δ = b² - 4ac(根的类型由它决定)&nb…… 题解列表 2025年12月22日 0 点赞 0 评论 263 浏览 评分:0.0