1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要://从中间开始循环就行!!#include<iostream>#include<string>using namespace std;string a;int n,i=0;void digui(int…… 题解列表 2022年03月14日 0 点赞 0 评论 355 浏览 评分:0.0
题解 2305: 蓝桥杯2019年第十届省赛真题-等差数列-oj测试数据有误 摘要:解题思路: 找最大公因数注意事项:除数为0参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { …… 题解列表 2022年03月14日 0 点赞 0 评论 521 浏览 评分:0.0
写题解 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,count2=0; scanf("%d",&n); …… 题解列表 2022年03月14日 0 点赞 0 评论 543 浏览 评分:0.0
写题解 1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int str1[10010],str2[10010]; int n,count1=0; scanf("%d",…… 题解列表 2022年03月14日 0 点赞 0 评论 354 浏览 评分: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 评论 367 浏览 评分:0.0
用数学思想解决算法问题 摘要:解题思路:公差为2的等差数列,前n项和为:n * (n + 1),那么根据推导可以得到第(n + 1)项到 (2 * n)项的和为前(2 * n)项的和减去前n项的和,所以设k为第k组的组数,使用上题…… 题解列表 2022年03月14日 0 点赞 0 评论 499 浏览 评分: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 评论 326 浏览 评分:0.0
蓝桥杯算法提高VIP-数组输出(python解法)简单易懂 摘要:` li = [] for i in range(3): #输入数组,并将其输入的每个值通过abs函数转为其对应的绝对值 li.append(lis…… 题解列表 2022年03月14日 0 点赞 0 评论 587 浏览 评分:0.0
1924: 蓝桥杯算法提高VIP-01背包 摘要:解题思路:非常经典的dp题目注意事项:必须把横向第一行和纵向第一行归零参考代码:#include<bits/stdc++.h> using namespace std; int main() {…… 题解列表 2022年03月15日 0 点赞 0 评论 479 浏览 评分: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 评论 405 浏览 评分:0.0