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