优质题解 1508: 蓝桥杯算法提高VIP-和最大子序列 (巧解) 摘要:### 注意点: 1:求的是某个序列的最大值; 2:子序列的定义; 3:初值的选取; ### 思路: 1:将输入的数组设为a[n],建立一个和数组sum[n],令s…… 题解列表 2022年07月05日 0 点赞 1 评论 952 浏览 评分:8.0
简易代码(C)望空破茧 摘要:解题思路:编写一个程序,输入a、b、c三个值,输出其中最大值。注意事项:本题解法多样化,仅作参考。参考代码:#include <stdio.h>#include <math.h>int main() …… 题解列表 2022年07月05日 0 点赞 0 评论 374 浏览 评分:0.0
唯一一个C++题解 摘要:解题思路:很简单不讲了注意事项:没啥好说的参考代码:#include<iostream>#include<cstdio>using namespace std ;int main(){ int …… 题解列表 2022年07月05日 0 点赞 0 评论 432 浏览 评分:9.9
稍简洁的三个数找最大值的题解 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d", &a, &b,&c); if(a<b) …… 题解列表 2022年07月05日 0 点赞 0 评论 329 浏览 评分:9.9
1499: 蓝桥杯算法提高VIP-分分钟的碎碎念 dp与dfs的无规则结合使用(巧解) 摘要:#### 题前思考: `显然:这题可以使用dfs或者是dp来解决 虽然给的数据不大,使用dfs的完全可以暴力解决,但是本着节约时间的原则,我又尝试使用dp来求 然后发现一个问题,dp…… 题解列表 2022年07月05日 0 点赞 0 评论 667 浏览 评分:0.0
1282: 公交汽车 dfs vs dp 摘要:### 这题比较简单,我采用了两种常见的方法来解答: ## 1:dfs(深度优先这题不可取,因为会时间超限87%) `其实这题用dfs的思想十分好理解——最优解型模板(参考[我的博客](https…… 题解列表 2022年07月04日 0 点赞 0 评论 498 浏览 评分:0.0
1009:数字的处理与判断 摘要:**题目描述:** 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 **输入格式:** 一个不大于5位的数…… 题解列表 2022年07月04日 0 点赞 0 评论 473 浏览 评分:9.9
come on兄弟们 摘要:解题思路:注意事项:参考代#include<iostream>#include<stdio.h>#include<cmath>using namespace std;int main(){ doubl…… 题解列表 2022年07月04日 0 点赞 0 评论 380 浏览 评分:9.9
哥德巴赫猜测 摘要:#include int main() { int n;//输入数据 int i,j; int a[10000];//用来储存2~n之间的素数 int cnt=0,sum=0;…… 题解列表 2022年07月04日 0 点赞 0 评论 479 浏览 评分:9.9
求[X,Y]内被除3余1并且被除5余3的整数的和!!!!!! 摘要:解题思路:注意事项:sum要赋一个初值,不然会随机分配一个值。参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x,y,…… 题解列表 2022年07月04日 0 点赞 0 评论 344 浏览 评分:0.0