1011辗转相除法的运用 摘要:解题思路:辗转相除法的本质是:两个数的最大公约数,是其中较小的那个数和两数相除余数的最大公约数,不断嵌套,当余数为零时,那个较大数就是最大公约数最大公倍数:两数积/两数最大公约数,设m,n, m = …… 题解列表 2026年04月04日 0 点赞 0 评论 102 浏览 评分:0.0
1014的递归写法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long fs(long long n)//定义一个函数fs,功能是对计…… 题解列表 2026年04月04日 0 点赞 0 评论 51 浏览 评分:0.0
1026使用for循环的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<…… 题解列表 2026年04月04日 0 点赞 0 评论 73 浏览 评分:0.0
蓝桥杯2025年第十六届省赛真题-最短距离贪心算法 摘要:解题思路:贪心思想,每个电器一定要找离自己最近的插头注意事项:对给出的位置进行排序,不知道具体位置,加绝对值参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2026年04月04日 0 点赞 0 评论 191 浏览 评分:0.0
1026使用stack相关语句完成逆序输出【桐人k】 摘要:解题思路:注意事项:涉及两种类型的变量,分别string,int,定义栈stack(头文件要包含include<stack>)栈的定义:  …… 题解列表 2026年04月04日 0 点赞 0 评论 70 浏览 评分:0.0
编写题解 1129: C语言训练-排序问题(2) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number[10]={0}; for(…… 题解列表 2026年04月04日 0 点赞 0 评论 37 浏览 评分:0.0
编写题解 1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number[10]={0}; for(…… 题解列表 2026年04月04日 1 点赞 0 评论 69 浏览 评分:0.0
编写题解 1169: 绝对值排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ while(1) &nb…… 题解列表 2026年04月04日 0 点赞 0 评论 33 浏览 评分:0.0
简单版bfs解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int MAX=105;int row,col;//定义行,…… 题解列表 2026年04月06日 0 点赞 0 评论 43 浏览 评分:0.0
3334: 蓝桥杯2025年第十六届省赛真题-园艺 摘要:#include<stdio.h>int main(){ int lh;//最后一棵树的高度 in…… 题解列表 2026年04月06日 0 点赞 0 评论 60 浏览 评分:0.0