蓝桥杯2013年第四届真题-带分数 (Python代码)各位一次过的代码,不来看看(手动滑稽)野路子 摘要:简单题,上代码 ```python n=int(input()) L=['1','2','3','4','5','6','7','8','9'] re=0 def check(i,L): …… 题解列表 2020年01月04日 0 点赞 0 评论 1262 浏览 评分:8.2
蓝桥杯2013年第四届真题-格子刷油漆-题解(Python代码) 摘要:```python n=int(input()) if n==1: print(2) elif n==2: print(24) else: a=[1 for i in range(…… 题解列表 2020年01月03日 0 点赞 0 评论 1149 浏览 评分:8.0
蓝桥杯基础练习VIP-Sine之舞-题解(Python代码) 摘要:简单粗暴的写法 也可以从最初开始定义字符串进行连接 ```python n = int(input()) def an(n): for i in range(1,n+1): …… 题解列表 2020年01月03日 0 点赞 2 评论 1311 浏览 评分:9.9
蓝桥杯历届试题-回文数字-题解(Python代码) 摘要:## 回文数字求解 我们首先要清楚这道题的求值范围为五位、六位的十进制数,依次他的范围是在(10000-1000000)。 这道题的求解可以用循环来做。 第一步:首先定义一个空列表来存放1000…… 题解列表 2020年01月03日 0 点赞 0 评论 1649 浏览 评分:9.5
DNA-题解(Python代码)简单题 摘要:```python N=int(input()) p=0 re=[] while pm: for j in range(m,leng): for k in range(m): …… 题解列表 2020年01月03日 0 点赞 0 评论 933 浏览 评分:4.0
蓝桥杯历届试题-回文数字-题解(Python代码)比较简单的办法 摘要:n=int(input()) re=[] for i in range(0,10): for j in range(0,10): k=n-2*(i+j) if k>=0 and k…… 题解列表 2020年01月02日 0 点赞 0 评论 787 浏览 评分:4.5
蓝桥杯2013年第四届真题-买不到的数目-题解(Python代码) 一个公式而已 摘要:废话不多说,先贴代码: ```python L=[int(i) for i in input().split()] re=(min(L)-1)*(max(L))-min(L) if min(L…… 题解列表 2020年01月02日 0 点赞 7 评论 1676 浏览 评分:9.4
蓝桥杯2014年第五届真题-兰顿蚂蚁 (Python代码)python开荒柘 摘要:直接上代码,AC(太不容易了,调了半天) ```python def turn_and_move(p,d): global L,direction k=direction.index(d)…… 题解列表 2020年01月02日 0 点赞 0 评论 767 浏览 评分:6.0
蓝桥杯算法提高-能量项链-题解(Python代码)不需要dp啊。。。。 摘要:老规矩,先上代码: ```python N=int(input()) L=input().split() for i in range(len(L)): L[i]=int(L[i]) r…… 题解列表 2020年01月01日 0 点赞 2 评论 643 浏览 评分:8.3
IP判断-题解(Python代码) 代码短,考虑'001'这种模式的做法 摘要:废话不多说,先贴代码 ```python while True: s=input() if s=="End of file": break L=s.…… 题解列表 2019年12月31日 0 点赞 0 评论 1000 浏览 评分:7.3