编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:lis=[] while True: try: dat=list(map(str,input().split('/'))) …… 题解列表 2022年02月24日 0 点赞 0 评论 447 浏览 评分:0.0
编写题解 1234: 检查一个数是否为质数 摘要:解题思路:通过循环进行判断注意事项:参考代码:#include<iostream> using namespace std; int main() { int a; cin>…… 题解列表 2022年02月24日 0 点赞 0 评论 388 浏览 评分:0.0
最长回文字符串(动态规划) 自用笔记 摘要:解题思路: 动态规划注意事项:如图所示,dp[0][3]的意思是cabb,不是指c和b。以对角线为分割,从左往右一列一列的填参考代码:#include<iostream> #include<ioma…… 题解列表 2022年02月24日 0 点赞 0 评论 455 浏览 评分:0.0
小小新手:2^k进制数 摘要:```python def xx(i, n): ss = [] while i: ss.append(i % n) i //= n …… 题解列表 2022年02月24日 0 点赞 0 评论 442 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 题解 摘要:解题思路:先比较长度,再比较内容。不区分大小写的条件可以运用 lower参考代码:str1=input() str2=input() if len(str1)!= len(str2): …… 题解列表 2022年02月24日 0 点赞 0 评论 386 浏览 评分:0.0
简单代码版本 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年02月24日 0 点赞 0 评论 373 浏览 评分:0.0
python-我们的征途是星辰大海 摘要:解题思路:这道题就是常规思路吧,处理好数据然后按照要求去进行模拟应该就没什么问题。注意:题目在行走的途中到达终点即算作到达了终点,而不是行走完成之后再进行判断是否到达终点。注意事项:参考代码:def …… 题解列表 2022年02月24日 0 点赞 0 评论 670 浏览 评分:0.0
1205_题解_字符串的修改-最长公共子序列_dp 摘要:需要改动的次数为,目标字符串长度 - 两字符串最大公共子序列的长度#include<iostream> #include<cstring> using namespace std; const…… 题解列表 2022年02月24日 0 点赞 0 评论 389 浏览 评分:0.0
矩阵快速幂——模板 摘要:·· ``` #include #include using namespace std; const int N=30; int n,k; struct mat { …… 题解列表 2022年02月24日 0 点赞 0 评论 448 浏览 评分:0.0
python-扫雷扫雷 摘要:解题思路:这道题没有什么要多说的。注意格式Field #i:,这里只有一个空格,另外不要忘记最后的冒号。注意事项:参考代码:def f(n,m,t): G = [] fo…… 题解列表 2022年02月24日 0 点赞 0 评论 525 浏览 评分:0.0