蓝桥杯2013年第四届真题-错误票据-题解(Python代码) 摘要:```python count = int(input()) listNum = [] #用户输入的数 while count>0: # 由用户输入count行的数据,放进…… 题解列表 2020年02月01日 0 点赞 0 评论 337 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:代码如下: ```python while True: print(sum([int(i) for i in input()])) ``` 循环加sum函数,然后里面将输入的字符串遍…… 题解列表 2020年02月01日 0 点赞 0 评论 686 浏览 评分:0.0
蓝桥杯算法提高VIP-分分钟的碎碎念-题解(Python代码) 摘要:递归求出次数即可 ```python data=[int(input()) for _ in range(int(input()))] f=lambda x:(x and f(data[x-1]…… 题解列表 2020年02月01日 0 点赞 0 评论 553 浏览 评分:9.9
蓝桥杯2013年第四届真题-错误票据-题解(Python代码) 摘要:回来啦! 文科生的艰难旅程要继续了! 加油吧! 这道题用python的话直接排序,然后看看缺什么就好。 ```python n=int(input()) l=[] for i in ra…… 题解列表 2020年01月31日 0 点赞 0 评论 359 浏览 评分:0.0
蓝桥杯算法提高VIP-色盲的民主-题解(Python代码)py开荒柘,简单题 摘要:简单题,实现起来,有些蠢,仅供参考 ```python n=int(input()) k=0 L=[] re=[] while k…… 题解列表 2020年01月31日 0 点赞 0 评论 534 浏览 评分:6.0
蓝桥杯 数字游戏-题解(Python代码) 没用公式法,暴力,超时 86% 摘要:```python n,k,T = map(int,input().split()) sum = 1 theSum = 0 # 栋栋说的数字 theSumCount…… 题解列表 2020年01月31日 0 点赞 0 评论 893 浏览 评分:0.0
蓝桥杯算法训练VIP-集合运算-题解(Python代码)python开荒柘,set()应用 摘要:简单题,贴代码,就是形式变来变去,有些绕 ```python n=input() a=set([int(i) for i in input().split()]) n2=input() b=…… 题解列表 2020年01月30日 0 点赞 1 评论 815 浏览 评分:8.7
蓝桥杯算法训练VIP-阶乘-题解(Python代码)py开荒柘,新思路,六行代码!速度快。 摘要:看了几位大佬的题解,我觉得,还是算的太多,先上代码 ```python n=int(input()) w=int(n/5)+1+int(n/25) re=1 for i in range(1…… 题解列表 2020年01月30日 0 点赞 0 评论 708 浏览 评分:4.7
蓝桥杯算法提高VIP-盾神与积木游戏-题解(Python代码)python开荒柘 摘要:题不难,就是恶心。。。容易超时,大家慎重 ```python num=int(input()) k=0 while k=L[-1][1]: print("YES") else: …… 题解列表 2020年01月30日 0 点赞 1 评论 737 浏览 评分:6.0
蓝桥杯算法提高VIP-数字黑洞 (Python代码)python开荒柘 摘要:有坑,测试数据里有一个是带空格的! ```python s=input().split()[0] n=0 def loop(s): global n if int(s)==6174: …… 题解列表 2020年01月29日 0 点赞 2 评论 802 浏览 评分:6.0