图像模糊处理 摘要:解题思路:注意事项:参考代码:n, m = map(int, input().split()) num = [list(map(int, input().split())) for _ in ran…… 题解列表 2024年04月09日 0 点赞 0 评论 674 浏览 评分:0.0
变幻的矩阵 摘要:解题思路:注意事项:参考代码:n = int(input()) num_start = [list(map(str, input().split())) for _ in range(n)] nu…… 题解列表 2024年04月09日 0 点赞 0 评论 603 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:n = int(input()) flag = 0 for i in range(10000, 1000000): if str(i) == str(i)[…… 题解列表 2024年04月09日 2 点赞 1 评论 723 浏览 评分:10.0
1462: 蓝桥杯基础练习VIP-Huffuman树 摘要:解题思路:注意事项:参考代码:n = int(input()) arr = list(map(int, input().split())) anwser = 0 while len(arr) >…… 题解列表 2024年04月09日 0 点赞 0 评论 596 浏览 评分:0.0
1197: 发工资咯 摘要:解题思路:注意事项:参考代码:def coin_change(n): coins = [100, 50, 10, 5, 2, 1] num = [] for coin i…… 题解列表 2024年04月09日 0 点赞 0 评论 709 浏览 评分:0.0
小白随便写的,记录一下,python开荒 摘要:```python """ 树形dp吧这题,这题很经典,但大多写法都是c/c++ 写了一下python 然后大部分思路都是dfs深搜 这里写了一下层次遍历的思路 其实和dfs的差不多 但还是提…… 题解列表 2024年04月09日 0 点赞 0 评论 854 浏览 评分:0.0
动态规划,用set代替list就可以跑完全部数据 解题思路:动态规划,新加的砝码和目前所得的质量可以相加,相减(两种情况,新砝码减旧质量或旧质量减新质量),将所得的结果(大于0)存入dp,供下一次使用,注意事项:中间要专门设一个列表,用于存储新称的重量,不能直接存入dp,用set集合可以比list速度快参考代码:n=int(input())arr=l 题解列表 2024年04月08日 0 点赞 0 评论 755 浏览 评分:9.9
Hash无脑过,二分有点坑!!! ```python#二分做法n=eval(input())ls=sorted(list(map(int,input().split())))target=eval(input())ans=[]defBinarySearch(ls,n,i):l, 题解列表 2024年04月08日 0 点赞 0 评论 639 浏览 评分:9.9
递归解法~~~~~~~~ 摘要:参考代码:def charge(n, summ): a = n // 3 b = n % 3 summ += a if (a + b) < 题解列表 2024年04月08日 0 点赞 0 评论 765 浏览 评分:6.0
图像旋转,非常规的简单方法 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) num = [list(map(int,input().split())) for _ in range(…… 题解列表 2024年04月08日 0 点赞 0 评论 482 浏览 评分:0.0