蓝桥杯基础练习VIP-字符串对比 题解 摘要:解题思路:先比较长度,再比较内容。不区分大小写的条件可以运用 lower参考代码:str1=input() str2=input() if len(str1)!= len(str2): …… 题解列表 2022年02月24日 0 点赞 0 评论 316 浏览 评分:0.0
简单代码版本 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年02月24日 0 点赞 0 评论 324 浏览 评分:0.0
小小新手:DNA 摘要:```python n = int(input()) while n: a, b = map(int, input().split()) ss = [] j = 0 …… 题解列表 2022年02月24日 0 点赞 0 评论 492 浏览 评分:9.9
python-我们的征途是星辰大海 摘要:解题思路:这道题就是常规思路吧,处理好数据然后按照要求去进行模拟应该就没什么问题。注意:题目在行走的途中到达终点即算作到达了终点,而不是行走完成之后再进行判断是否到达终点。注意事项:参考代码:def …… 题解列表 2022年02月24日 0 点赞 0 评论 547 浏览 评分:0.0
python-打水问题 摘要:解题思路:注意事项:参考代码:def f(n,m): A = [int(i) for i in input().strip().split()] A.sort() …… 题解列表 2022年02月24日 0 点赞 0 评论 547 浏览 评分:9.9
C++String类题解 摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2022年02月24日 0 点赞 0 评论 450 浏览 评分:9.9
1205_题解_字符串的修改-最长公共子序列_dp 摘要:需要改动的次数为,目标字符串长度 - 两字符串最大公共子序列的长度#include<iostream> #include<cstring> using namespace std; const…… 题解列表 2022年02月24日 0 点赞 0 评论 290 浏览 评分:0.0
矩阵快速幂——模板 摘要:·· ``` #include #include using namespace std; const int N=30; int n,k; struct mat { …… 题解列表 2022年02月24日 0 点赞 0 评论 388 浏览 评分:0.0
python-扫雷扫雷 摘要:解题思路:这道题没有什么要多说的。注意格式Field #i:,这里只有一个空格,另外不要忘记最后的冒号。注意事项:参考代码:def f(n,m,t): G = [] fo…… 题解列表 2022年02月24日 0 点赞 0 评论 440 浏览 评分:0.0
大一小白一位 欢迎大佬点评!! 摘要:注意事项:循环条件得多考虑参考代码: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 评论 358 浏览 评分:9.9