优质题解 仅利用二维数组控制行列之和解决蛇形矩阵 摘要:解题思路:1 3 6 10 152 5 9 144 8 137 1211首先定义二维数组num[5][5],根据数字递增的规律观察行列之和的关系;a[0][0]=1(行+列=0)a[1][0]=2 a…… 题解列表 2022年05月03日 1 点赞 7 评论 1470 浏览 评分:8.5
蓝桥杯算法提高VIP-队列操作 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<int>q;int n,a,b;int main(){ cin>>…… 题解列表 2022年05月03日 0 点赞 0 评论 413 浏览 评分:0.0
快速排序练习 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 483 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<3;i++)…… 题解列表 2022年05月03日 0 点赞 0 评论 319 浏览 评分:0.0
C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<4;i++)…… 题解列表 2022年05月03日 0 点赞 0 评论 298 浏览 评分:0.0
C语言训练-排序问题<2> 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<10;i++…… 题解列表 2022年05月03日 0 点赞 0 评论 338 浏览 评分:0.0
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; bool cmp(int a, int b);int main(){ int…… 题解列表 2022年05月03日 0 点赞 0 评论 312 浏览 评分:0.0
数据结构-直接插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 536 浏览 评分:0.0
数据结构-折半插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 412 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数(递归法) 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())def maxgongyue(m,n): if n != 0 : return maxgong…… 题解列表 2022年05月03日 0 点赞 0 评论 425 浏览 评分:0.0