[递归]母牛的故事题解 摘要:解题思路:这是一个典型的斐波那契数列问题,只不过初始条件略有不同。根据题目描述,母牛的数量可以用递推公式来表示: f(n) = f(n-1) + f(n-3)注意事项:1.可以使用sca…… 题解列表 2023年12月01日 0 点赞 1 评论 548 浏览 评分:9.9
蓝桥杯基础练习VIP-阶乘计算(高精度计算) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #define MAX 10000 void multiply(int res[], int num, int *siz…… 题解列表 2023年12月01日 0 点赞 0 评论 771 浏览 评分:9.9
编写题解 2760: 整型与布尔型的转换 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<(…… 题解列表 2023年12月02日 0 点赞 0 评论 699 浏览 评分:9.9
2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 692 浏览 评分:9.9
题解 1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){ double r; c…… 题解列表 2023年12月02日 0 点赞 0 评论 1022 浏览 评分:9.9
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年12月02日 0 点赞 0 评论 662 浏览 评分:9.9
题解 2768: 与圆相关的计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double r; scanf("%lf",&r); pr…… 题解列表 2023年12月02日 0 点赞 0 评论 772 浏览 评分:9.9
编写题解 1267: A+B Problem 摘要:解题思路:设定一个整数“a”和“b”参考代码:#includeusing namespace std;int main(){ int a; int b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 625 浏览 评分:9.9
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin>>a>>b…… 题解列表 2023年12月02日 0 点赞 0 评论 556 浏览 评分:9.9
题解 2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,n,m; cin>>a>>b>>n; …… 题解列表 2023年12月02日 0 点赞 0 评论 417 浏览 评分:9.9