C语言训练-阶乘和数*-题解(Python代码) 摘要:就是按部就班的遍历 最后字典方式排序输出,就是将每一个数字都转换为字符串,然后排序输出 answer_list = [] # 需要一个求阶乘的函数 def …… 题解列表 2020年03月08日 0 点赞 0 评论 743 浏览 评分:0.0
蓝桥杯算法训练-二进制数数-题解(Python代码) Python的bin()函数的返回值为Str型 摘要:用Python的bin()方法,将十进制数转换成二进制数,再用count方法统计‘1’出现的次数即可。 ```python l,r = map(int,input().split()) # 由…… 题解列表 2020年03月08日 0 点赞 0 评论 1084 浏览 评分:9.9
[出圈]-题解(Python代码) 摘要: while True: n_number, m_number = map(int, input().split()) # 输入人数和m people_num…… 题解列表 2020年03月07日 0 点赞 0 评论 1556 浏览 评分:9.9
[亲和数]-题解(Python代码) 摘要: test_count = int(input()) answer_list = [] # 存放每一组的结果 def getSum(number): …… 题解列表 2020年03月07日 0 点赞 0 评论 2004 浏览 评分:8.0
C语言训练-邮票组合问题*-题解(Python代码) 摘要: three_choose = 4 + 1 # 对于3分的,有5种可能选择的情况, 选0个, 1个。。。。4个 five_choose = 3 + 1 # 对于5分的,有4种可能选择的…… 题解列表 2020年03月07日 0 点赞 0 评论 796 浏览 评分:0.0
蓝桥杯算法提高VIP-快速幂 (Python代码) 摘要:python中没有对int的限制, 且存在pow()内置函数,直接使得完成乘方求模工作 ```python N, M, P = map(int, input().split()) pri…… 题解列表 2020年03月06日 0 点赞 0 评论 770 浏览 评分:0.0
蓝桥杯历届试题-回文数字-题解(Python代码)循环次数少! 摘要:```python n = int(input()) temp=0 for i in range(1,10): for j in range(0,10): for k…… 题解列表 2020年03月05日 0 点赞 0 评论 978 浏览 评分:8.4
[编程入门]链表合并-题解(Python代码) 摘要: dic_a = {} dic_b = {} N, M = map(int, input().split()) for i in range(N): …… 题解列表 2020年03月05日 0 点赞 1 评论 1288 浏览 评分:9.0
蓝桥杯2013年第四届真题-危险系数-题解(Python代码) DFS 摘要:```python m,n=map(int,input().split()) l = [[0 for _ in range(m)] for _ in range(m)] for i in ran…… 题解列表 2020年03月05日 0 点赞 0 评论 1510 浏览 评分:9.9
蓝桥杯2013年第四届真题-买不到的数目-题解(Python代码) 摘要:``` m,n=map(int,input().split()) s=m*n def cheek(l): if(l%m==0 or l%n==0): …… 题解列表 2020年03月04日 0 点赞 0 评论 1123 浏览 评分:6.0