数据结构-直接插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 748 浏览 评分:0.0
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; bool cmp(int a, int b);int main(){ int…… 题解列表 2022年05月03日 0 点赞 0 评论 497 浏览 评分: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 评论 493 浏览 评分: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 评论 458 浏览 评分: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 评论 464 浏览 评分:0.0
快速排序练习 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 680 浏览 评分:0.0
蓝桥杯算法提高VIP-队列操作 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<int>q;int n,a,b;int main(){ cin>>…… 题解列表 2022年05月03日 0 点赞 0 评论 592 浏览 评分:0.0
优质题解 仅利用二维数组控制行列之和解决蛇形矩阵 解题思路:136101525914481371211首先定义二维数组num[5][5],根据数字递增的规律观察行列之和的关系;a[0][0]=1(行+列=0)a[1][0]=2a[0][1]=3(行+列=1)a[2][0]=4a[1][1]=5a[0][2]=6(行+列=2)...a[4][0]=11 题解列表 2022年05月03日 1 点赞 7 评论 1641 浏览 评分:8.5
信息学奥赛一本通T1547-区间和-题解(C语言代码) 摘要:```c #include #include long*l; long f(int x){ *l=0; do *l+=l[x]; while(x-=x&-x); return …… 题解列表 2022年05月03日 0 点赞 0 评论 985 浏览 评分:8.0
信息学奥赛一本通T1541-数列区间最大值-题解(C++代码) 摘要:```c++ #include using namespace std; int main(){ int n,m; scanf("%d%d",&n,&m); int k=-~__lg…… 题解列表 2022年05月03日 0 点赞 0 评论 820 浏览 评分:9.1