Hifipsysta-1924: 蓝桥杯算法提高VIP-01背包 摘要:```cpp #include using namespace std; int weight[5001]; int value[5001]; int dp[5001]; int…… 题解列表 2022年03月01日 0 点赞 0 评论 455 浏览 评分:0.0
该题注意事项 摘要:解题思路:通过遍历来获取最大最小值以及他们的位置注意事项:只要注意不要一开始就设置到最大最小值的位置,因为并不一起排序的话,排了最大值,排最小值的时候就会记录到你已经设置过得原始状态,而此时早已发生改…… 题解列表 2022年03月01日 0 点赞 0 评论 456 浏览 评分:0.0
1461: 字符串 java 字符串追加方法的应用 摘要:- 思路 规律很明显: 当前字符串 a[i] = 上一个字符串a [i-1] + c + a[i-1] 这里字符c 我们能观察到他是…… 题解列表 2022年03月01日 0 点赞 0 评论 466 浏览 评分:0.0
C语言训练-8除不尽的数 摘要:解题思路: 注意事项:参考代码: #include<stdio.h>//x=((8*a+7)*8+1)*8+1//x=(2*a*17+15)*17+4int main()…… 题解列表 2022年03月01日 0 点赞 0 评论 450 浏览 评分:0.0
1458: 蓝桥杯2013年第四届真题-错误票据 摘要: #include #include #include #include using namespace std; const int …… 题解列表 2022年03月01日 0 点赞 0 评论 298 浏览 评分:0.0
求问大佬,为啥时间超限了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { long int i, a, b, t; int c = 0, max = 0; int m = 0, k;…… 题解列表 2022年03月01日 0 点赞 2 评论 283 浏览 评分:0.0
C语言训练-大、小写问题 为什么不能 gets(a); strlwr(a);这样写? 摘要:解题思路:注意事项:参考代码: &nb 题解列表 2022年03月01日 0 点赞 0 评论 398 浏览 评分:0.0
[STL训练]Who's in the Middle 摘要:```cpp #include using namespace std; #include #include bool cmp(int a,int b){ return a < b;…… 题解列表 2022年03月01日 0 点赞 0 评论 459 浏览 评分:0.0
动态规划-最长上升子序列模型,注意前一次和后一次的美味度可相等! 摘要:#include<iostream>using namespace std;const int N=1005;int a[N],dp[N];int main(){ int n; cin>>…… 题解列表 2022年03月01日 0 点赞 0 评论 362 浏览 评分:0.0