蓝桥杯算法提高VIP-身份证排序-题解(Python代码)不开荒了,这题不荒了 摘要:```python n=int(input()) L=[] while n>0: k=input().split() L.append([int(k[0]),int(k[0][6:14]…… 题解列表 2020年04月02日 0 点赞 2 评论 626 浏览 评分:6.0
蓝桥杯算法训练VIP-连续正整数的和-题解(Python代码)python开荒柘 非暴力题解!奇偶讨论 摘要:先上代码 ```python n=int(input()) re=[] for i in range(2,n): if i%2==0 and n/i==n//i+0.5 and n//i+…… 题解列表 2020年04月02日 0 点赞 0 评论 533 浏览 评分:6.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:```python while True: num1=list(map(int,input().split())) n1=len(num1) sum1=0 f…… 题解列表 2020年04月01日 0 点赞 0 评论 2332 浏览 评分:8.0
蓝桥杯历届试题-九宫重排 (Python代码)(bfs+集合) 摘要:ac代码..可是官网还有两组没过.. ```python from collections import deque class Node(): def __init__(se…… 题解列表 2020年03月31日 0 点赞 1 评论 1331 浏览 评分:9.9
蓝桥杯算法提高VIP-快乐司机-题解(Python代码)python开荒柘,本来看完题以为是个黄金,没想到是个青铜。。。。 摘要:还是先上代码 ```python base=[int(i) for i in input().split()] L=[] for i in range(base[0]): r=[int…… 题解列表 2020年03月30日 0 点赞 0 评论 758 浏览 评分:6.0
[编程入门]实数的打印 (Python代码) 摘要:a=float(input()) #定义为float类型 for i in range(1,4): #输出三次 for j in range(i): print("{:6…… 题解列表 2020年03月29日 0 点赞 0 评论 1118 浏览 评分:9.5
蓝桥杯算法训练VIP-装箱问题-题解(Python代码) 摘要:类背包问题,加动态规划,剪枝优化。 ```python def main(): v,n = int(input()),int(input()) cv =[0]+[int(i…… 题解列表 2020年03月29日 0 点赞 0 评论 1025 浏览 评分:9.9
蓝桥杯算法提高VIP-01背包-题解(Python代码) 摘要:典型的背包加动态规划。 代码如下: ```python n,m = map(int,input().split()) wi = [0 for _ in range(n+1)] #重量…… 题解列表 2020年03月29日 0 点赞 0 评论 598 浏览 评分:7.3
蓝桥杯算法训练VIP-寂寞的数-题解(Python代码)python开荒柘,简单题,筛法变形 摘要:```python n=int(input()) L=[] for i in range(n+1): L.append(i) re=[] point=0 while point…… 题解列表 2020年03月29日 0 点赞 0 评论 579 浏览 评分:5.3
蓝桥杯算法提高VIP-学霸的迷宫-题解(Python代码) 摘要:BFS,好像没什么好说的 ```python class Node: def __init__(self, x, y, w): self.x = x …… 题解列表 2020年03月28日 0 点赞 0 评论 713 浏览 评分:7.0