最清晰、简单Python代码 递归 母牛的故事 摘要:解题思路:首先在表格上画一下,方便理解本题年份\年龄1岁2岁3岁成年总数第一年00011第二年10012第三年11013第四年11114第五年21126那么接下来稍微找一下规律就会发现其实非常简单,根…… 题解列表 2024年01月08日 1 点赞 0 评论 721 浏览 评分:9.0
题解 2000: 偶数列举 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n; cin>>n; for…… 题解列表 2024年01月08日 0 点赞 0 评论 135 浏览 评分:6.0
题解 1151: 计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a=1; cin>>n; f…… 题解列表 2024年01月08日 0 点赞 0 评论 111 浏览 评分:0.0
题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 405 浏览 评分:9.9
2777: 计算2的幂(超级简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 145 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 131 浏览 评分:0.0
题解 3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,s1,s2; s1=0; …… 题解列表 2024年01月08日 0 点赞 0 评论 157 浏览 评分:9.9
3010: 奇偶数之和(超简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 130 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; double b=0…… 题解列表 2024年01月08日 0 点赞 0 评论 195 浏览 评分:0.0
排队打水问题贪心求解 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 510; in…… 题解列表 2024年01月08日 0 点赞 0 评论 214 浏览 评分:0.0