蓝桥杯2015年第六届真题-密文搜索-题解(Python代码)10行,标准库collections应用 摘要:解题思路:注意事项: 给原字符串切片时一定注意索引值以防漏掉最后一个8位字符串参考代码:from collections import Counter string = input().s…… 题解列表 2021年02月15日 0 点赞 0 评论 353 浏览 评分:0.0
蓝桥杯2013年第四届真题-幸运数-题解(Python代码)(try-except) 摘要:m, n = map(int, input().split()) nums = [i for i in range(1, n + 2)] target = 1 count = 0 for i …… 题解列表 2021年02月15日 0 点赞 0 评论 430 浏览 评分:9.9
note an easy problem2 摘要:哈哈哈#includeint main(){ int strcpy_my(int n, char c[], int m); int n, m; char a[100]; sca…… 题解列表 2021年02月15日 0 点赞 1 评论 396 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值-题解(Python代码) 摘要:解题思路:注意事项:注意第二行数据的输入(空格),可以先用一个列表装(输入要去除空格)参考代码:n=int(input())s=0m=[]m=list(input().strip().split())…… 题解列表 2021年02月12日 0 点赞 0 评论 534 浏览 评分:4.0
蓝桥杯算法提高VIP-输出九九乘法表-题解(Python代码) 摘要:解题思路:注意事项:相乘结果为两位数时,可以采用占2位右对齐输出参考代码:print(' Nine-by-nine Multiplication Table')print('…… 题解列表 2021年02月12日 0 点赞 0 评论 489 浏览 评分:0.0
蓝桥杯2019年第十届真题-后缀表达式-题解(Python代码) 摘要:解题思路:首先明白这道题为什么叫后缀表达式,是因为后缀表达式不再引用括号(其实是隐式的引用括号),比如2 3 + 1 - 这个式子,就是(2+3)−1=4, 从左向右计算,不考虑括号,运算符放在两个运…… 题解列表 2021年02月09日 0 点赞 0 评论 1323 浏览 评分:8.7
蓝桥杯算法提高VIP-师座操作系统-题解(Python代码)Namedtuple 摘要:解题思路:方法比较多,这里使用python标准库中的namedtuple注意事项:参考代码:import collections def open_(name): global s…… 题解列表 2021年02月09日 0 点赞 0 评论 449 浏览 评分:0.0
蓝桥杯2019年第十届真题-旋转-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())num=[]res=[[0]*n for i in range(m)]a=nwhile a!=0: num.…… 题解列表 2021年02月08日 0 点赞 0 评论 512 浏览 评分:9.9
蓝桥杯2019年第十届真题-特别数的和-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input())str1='2019'num=0for i in range(1,n+1): for j in str1: …… 题解列表 2021年02月08日 0 点赞 0 评论 283 浏览 评分:0.0
数字整除-题解(Python代码) 摘要:解题思路:没什么难点,注意利用好py的切片机制。注意事项:参考代码:while(1): str=input() if(str[0]=='0'…… 题解列表 2021年02月06日 0 点赞 0 评论 422 浏览 评分:0.0