猴子吃桃的问题(简易版) 摘要:解题思路:这就是一道小学数学题吧,每次吃一半再多吃一个,就是先乘1/2在减一,我们只需要执行它的反过程就可以了,就是成先加一在乘2注意事项:第N天发现就剩一个桃子了,所以第N天没吃成,就是只吃了N-1…… 题解列表 2023年12月01日 0 点赞 0 评论 261 浏览 评分:9.9
2749: Hello, World!(十分的简单C++) 摘要:2749: Hello, World! #include 万能文件库(bits/stdc++.h) using namespace std; int main() { cout…… 题解列表 2023年12月01日 0 点赞 0 评论 293 浏览 评分:9.9
亲和数题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int is_qhs(int a,int b){ int sum1=0; int sum2=0; for(int…… 题解列表 2023年12月01日 0 点赞 0 评论 122 浏览 评分:9.9
[递归]母牛的故事题解 摘要:解题思路:这是一个典型的斐波那契数列问题,只不过初始条件略有不同。根据题目描述,母牛的数量可以用递推公式来表示: f(n) = f(n-1) + f(n-3)注意事项:1.可以使用sca…… 题解列表 2023年12月01日 0 点赞 1 评论 269 浏览 评分:9.9
蓝桥杯基础练习VIP-阶乘计算(高精度计算) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #define MAX 10000 void multiply(int res[], int num, int *siz…… 题解列表 2023年12月01日 0 点赞 0 评论 395 浏览 评分:9.9
2776: A*B问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 262 浏览 评分:9.9
编写题解 2760: 整型与布尔型的转换 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<(…… 题解列表 2023年12月02日 0 点赞 0 评论 316 浏览 评分:9.9
2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2023年12月02日 0 点赞 0 评论 387 浏览 评分:9.9
题解 1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){ double r; c…… 题解列表 2023年12月02日 0 点赞 0 评论 587 浏览 评分:9.9
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年12月02日 0 点赞 0 评论 348 浏览 评分:9.9