1205_题解_字符串的修改-最长公共子序列_dp 摘要:需要改动的次数为,目标字符串长度 - 两字符串最大公共子序列的长度#include<iostream> #include<cstring> using namespace std; const…… 题解列表 2022年02月24日 0 点赞 0 评论 423 浏览 评分:0.0
C++String类题解 摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2022年02月24日 0 点赞 0 评论 528 浏览 评分:9.9
python-打水问题 摘要:解题思路:注意事项:参考代码:def f(n,m): A = [int(i) for i in input().strip().split()] A.sort() …… 题解列表 2022年02月24日 0 点赞 0 评论 677 浏览 评分:9.9
python-我们的征途是星辰大海 摘要:解题思路:这道题就是常规思路吧,处理好数据然后按照要求去进行模拟应该就没什么问题。注意:题目在行走的途中到达终点即算作到达了终点,而不是行走完成之后再进行判断是否到达终点。注意事项:参考代码:def …… 题解列表 2022年02月24日 0 点赞 0 评论 707 浏览 评分:0.0
小小新手:DNA 摘要:```python n = int(input()) while n: a, b = map(int, input().split()) ss = [] j = 0 …… 题解列表 2022年02月24日 0 点赞 0 评论 557 浏览 评分:9.9
简单代码版本 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年02月24日 0 点赞 0 评论 407 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 题解 摘要:解题思路:先比较长度,再比较内容。不区分大小写的条件可以运用 lower参考代码:str1=input() str2=input() if len(str1)!= len(str2): …… 题解列表 2022年02月24日 0 点赞 0 评论 413 浏览 评分:0.0
小小新手:2^k进制数 摘要:```python def xx(i, n): ss = [] while i: ss.append(i % n) i //= n …… 题解列表 2022年02月24日 0 点赞 0 评论 464 浏览 评分:0.0
1518: 蓝桥杯算法提高VIP-寻找三位数(dfs) 摘要:解题思路:dfs也是比较暴力的算法,直接把1-9全排列都写出来,然后进行判断,提供一个全排列dfs模板吧参考代码:#include <stdio.h> int p[11]; int dp[1…… 题解列表 2022年02月24日 0 点赞 0 评论 530 浏览 评分:9.9
最长回文字符串(动态规划) 自用笔记 摘要:解题思路: 动态规划注意事项:如图所示,dp[0][3]的意思是cabb,不是指c和b。以对角线为分割,从左往右一列一列的填参考代码:#include<iostream> #include<ioma…… 题解列表 2022年02月24日 0 点赞 0 评论 491 浏览 评分:0.0