蓝桥杯算法提高VIP-夺宝奇兵 DP 摘要:#include<iostream> using namespace std; const int maxn = 150; int map[maxn][maxn]; int dp[maxn][…… 题解列表 2021年04月10日 0 点赞 0 评论 193 浏览 评分:0.0
蓝桥杯算法提高VIP-和最大子序列 DP 摘要:#include<iostream> using namespace std; const int maxn = 100050; int arry[maxn]; int dp[maxn]; …… 题解列表 2021年04月09日 0 点赞 0 评论 297 浏览 评分:9.9
连号区间数 摘要:解题思路:本题思路在于两次循环确定区间边界 把连续问题转化为求区间极值差与区间长度关系问题 相同则连续注意事项:参考代码:# 本题思路在于两次循环确定区间边界 把连续问题转化为求区间极值差与区间长度关…… 题解列表 2021年04月09日 0 点赞 0 评论 324 浏览 评分:9.9
[编程入门]利润计算 (C语言) 摘要:解题思路:就是简单的分段函数求解注意事项:注意要看清题目要求“按上述办法提成”,就是前面的规律不变,超出部分按超出的那个比例算。参考代码:#include <stdio.h>#define num_1…… 题解列表 2021年04月09日 0 点赞 0 评论 435 浏览 评分:6.0
C语言两行搞定。(我就是来逗b的,啊哈哈嗝) 摘要:#include<stdio.h>int main(){int x;scanf("%d", &x);int h = 0, m = 0, s = 0;h = x / 60 / 60 % 60;m = x…… 题解列表 2021年04月09日 0 点赞 0 评论 336 浏览 评分:9.9
[算法提高VIP]不同单词个数统计 摘要: import java.util.Scanner; public class Main { public static void main(String…… 题解列表 2021年04月09日 0 点赞 0 评论 546 浏览 评分:9.9
借助另一个数组,简单易懂!暴力! 摘要:解题思路:借助另一个数组#include<stdio.h> int main() { char str1[100],str2[200]; scanf("%[^\n]", &str1);//…… 题解列表 2021年04月09日 0 点赞 0 评论 244 浏览 评分:9.9
蓝桥杯2018年第九届真题-小朋友崇拜圈 C++ 极其简单粗暴 27行解决 摘要:解题思路:思路很简单,从每个小朋友开始找直到找到自己为止,记录寻找最大值。感觉要是数据强一点我这方法可能会超时,有大佬有好的优化方法可以在评论区写一下。注意事项:参考代码:#include<iostr…… 题解列表 2021年04月09日 0 点赞 0 评论 544 浏览 评分:8.4
题目 1072: 汽水瓶(java代码、递归,详解) 摘要:## 题解&思路 这一题我采用的是递归,但是怎么去想呢? 我们肯定需要一个辅助函数来计算多少瓶: ~~~java public class Main { public static vo…… 题解列表 2021年04月09日 0 点赞 0 评论 355 浏览 评分:8.7
蓝桥杯算法训练VIP-一元三次方程求解(暴力就完事) 摘要:解题思路:注意事项:参考代码:a,b,c,d=map(float,input().split()) x=-100 while x<100: cnt=0 if abs(a*x**…… 题解列表 2021年04月09日 0 点赞 0 评论 283 浏览 评分:0.0