0/1背包问题,一维数组求解 摘要:/* 背包问题基本01: 递推公式: w[i]: 商品占用价值; val[i]: 商品价值; f[v] = max(f[v],f[v-w[i]]+val[i]) */ ``` #i…… 题解列表 2022年05月03日 0 点赞 0 评论 559 浏览 评分:9.9
数据结构-折半插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 396 浏览 评分:0.0
数据结构-直接插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 520 浏览 评分:0.0
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; bool cmp(int a, int b);int main(){ int…… 题解列表 2022年05月03日 0 点赞 0 评论 302 浏览 评分: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 评论 331 浏览 评分: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 评论 285 浏览 评分: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 评论 309 浏览 评分:0.0
快速排序练习 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 469 浏览 评分: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 评论 401 浏览 评分:0.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 评论 623 浏览 评分:9.1