写题解 1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int str1[10010],str2[10010]; int n,count1=0; scanf("%d",…… 题解列表 2022年03月14日 0 点赞 0 评论 272 浏览 评分:0.0
[递归]母牛的故事 摘要:#include<iostream>using namespace std;const int N=1000;int s[N],a[N],b[N],c[N],d[N];int main(){ s…… 题解列表 2022年03月14日 0 点赞 0 评论 294 浏览 评分:0.0
用数学思想解决算法问题 摘要:解题思路:公差为2的等差数列,前n项和为:n * (n + 1),那么根据推导可以得到第(n + 1)项到 (2 * n)项的和为前(2 * n)项的和减去前n项的和,所以设k为第k组的组数,使用上题…… 题解列表 2022年03月14日 0 点赞 0 评论 418 浏览 评分:0.0
蓝桥杯算法提高VIP-和最大子序列 摘要:#include<iostream>using namespace std;int ans=-1001;const int N=100000;int a[N];int main(){ int n…… 题解列表 2022年03月14日 0 点赞 0 评论 247 浏览 评分:0.0
蓝桥杯算法提高VIP-数组输出(python解法)简单易懂 摘要:` li = [] for i in range(3): #输入数组,并将其输入的每个值通过abs函数转为其对应的绝对值 li.append(lis…… 题解列表 2022年03月14日 0 点赞 0 评论 495 浏览 评分:0.0
1924: 蓝桥杯算法提高VIP-01背包 摘要:解题思路:非常经典的dp题目注意事项:必须把横向第一行和纵向第一行归零参考代码:#include<bits/stdc++.h> using namespace std; int main() {…… 题解列表 2022年03月15日 0 点赞 0 评论 328 浏览 评分:0.0
dfs搜索!!! 摘要:```cpp #include using namespace std; const int L = 12; int n; char arr[L][L]; bool lie[L],…… 题解列表 2022年03月15日 0 点赞 0 评论 326 浏览 评分:0.0
编写题解 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include "iostream"#include "algorithm"#include "vector"using namespace std;int main(…… 题解列表 2022年03月15日 0 点赞 0 评论 245 浏览 评分:0.0
题解 2306: 蓝桥杯2019年第十届省赛真题-后缀表达式 摘要:解题思路:注意事项:参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { public sta…… 题解列表 2022年03月15日 0 点赞 0 评论 368 浏览 评分:0.0
编写题解 1063: 二级C语言-统计字符 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<ctype.h>#include<string.h>using namespace std;int main(){ …… 题解列表 2022年03月15日 0 点赞 0 评论 293 浏览 评分:0.0