2567: 蓝桥杯2019年第十届国赛真题-最长子序列 摘要:解题思路:注意事项:参考代码:a=input() b=input() s=0 for i in b: z=0 for j in range(len(a)): …… 题解列表 2022年02月24日 0 点赞 0 评论 637 浏览 评分:9.9
分糖果(C++代码)简洁明了 摘要:解题思路:上代码注意事项:参考代码:#include<iostream> #include <vector> using namespace std; bool isequal(vector<i…… 题解列表 2022年02月24日 0 点赞 0 评论 934 浏览 评分:9.9
Java实现正则问题 摘要: import java.util.*; import java.math.*; public class Main { static char[] arr; stati…… 题解列表 2022年02月24日 0 点赞 0 评论 587 浏览 评分:9.9
1882: 蓝桥杯2017年第八届真题-k倍区间 摘要:解题思路:注意事项:1、数据比较多(n=1e5),建议用scanf读入2、最坏的情况前缀和是10万的平方,1e10,int最多2x10^9,开long long,ans也是3、时间复杂度->o(n^2…… 题解列表 2022年02月24日 0 点赞 0 评论 528 浏览 评分:9.9
优质题解 python-开灯游戏 摘要:解题思路:穷举遍历。①我们可以将9个开关看成9位二进制数,1表示开,0表示关。那么所有的可能也就是十进制下0~511。②对十进制下0~511进行遍历,先将其转化为9位二进制数,然后判断每一个开关的状态…… 题解列表 2022年02月24日 0 点赞 0 评论 899 浏览 评分:9.9
1518: 蓝桥杯算法提高VIP-寻找三位数(dfs) 摘要:解题思路:dfs也是比较暴力的算法,直接把1-9全排列都写出来,然后进行判断,提供一个全排列dfs模板吧参考代码:#include <stdio.h> int p[11]; int dp[1…… 题解列表 2022年02月24日 0 点赞 0 评论 534 浏览 评分:9.9
小小新手:DNA 摘要:```python n = int(input()) while n: a, b = map(int, input().split()) ss = [] j = 0 …… 题解列表 2022年02月24日 0 点赞 0 评论 563 浏览 评分:9.9
python-打水问题 摘要:解题思路:注意事项:参考代码:def f(n,m): A = [int(i) for i in input().strip().split()] A.sort() …… 题解列表 2022年02月24日 0 点赞 0 评论 684 浏览 评分:9.9
C++String类题解 摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2022年02月24日 0 点赞 0 评论 535 浏览 评分:9.9
大一小白一位 欢迎大佬点评!! 摘要:注意事项:循环条件得多考虑参考代码:int main(){ const float arr[3][3]={{0.40,0.20,0.15},{0.60,0.40,0.20},{0.80,0.50…… 题解列表 2022年02月24日 0 点赞 0 评论 408 浏览 评分:9.9