1004: [递归]母牛的故事c语言 摘要:代码解释:这里作者用了五维数组解题思路:有1岁牛2岁牛3岁牛4岁牛分别统计他们的数量,4岁牛的数量=上一年的3岁牛+当年4岁牛的数量。3岁牛的数量=上一年的2岁牛的数量。2岁牛的数量=上一年的1岁牛的…… 题解列表 2024年06月15日 0 点赞 0 评论 297 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值(test1) 摘要:**#include using namespace std; int main() { long long n,sum=0; cin>>n; for(int …… 题解列表 2024年06月16日 0 点赞 0 评论 237 浏览 评分:0.0
题解 2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int manba(int a,int b,int c){ if(a>b) { …… 题解列表 2024年06月16日 0 点赞 0 评论 297 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值(正确题解·(doge)) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int manba(long long a,long long sum){ fo…… 题解列表 2024年06月16日 0 点赞 0 评论 284 浏览 评分:0.0
N以内累加求和 摘要:解题思路:循环注意事项:n大写参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> …… 题解列表 2024年06月16日 0 点赞 0 评论 517 浏览 评分:0.0
C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:阶乘参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;…… 题解列表 2024年06月16日 0 点赞 0 评论 300 浏览 评分:0.0
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;…… 题解列表 2024年06月16日 0 点赞 0 评论 351 浏览 评分:0.0
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级 摘要:解题思路: 简化攻击力增加量的计算过程,确保每次升级后都按等差数列求和来计算总增加攻击力。参考代码:#include <stdio.h>#include <limits.h>#define max …… 题解列表 2024年06月16日 0 点赞 0 评论 558 浏览 评分:0.0
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级 摘要:解题思路:贱命一条就是干注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#define max 1000005struct Node { int …… 题解列表 2024年06月16日 0 点赞 0 评论 347 浏览 评分:0.0
傻瓜式解决方法 摘要:#include #include //(类比依次输出数字的大小,采用中间变量进行排序) int main() { char str1[100], str2[100], str3[…… 题解列表 2024年06月17日 0 点赞 0 评论 437 浏览 评分:0.0