蓝桥杯算法提高VIP-计算时间-题解(Python代码) 9行走 摘要:```python times = int(input()) sec = [] for i in range(times): sec.append(int(input())) f…… 题解列表 2020年03月08日 0 点赞 2 评论 269 浏览 评分:0.0
C语言训练-阶乘和数*-题解(Python代码) 摘要:就是按部就班的遍历 最后字典方式排序输出,就是将每一个数字都转换为字符串,然后排序输出 answer_list = [] # 需要一个求阶乘的函数 def func…… 题解列表 2020年03月08日 0 点赞 0 评论 657 浏览 评分:7.0
C语言训练-阶乘和数*-题解(Python代码) 摘要:就是按部就班的遍历 最后字典方式排序输出,就是将每一个数字都转换为字符串,然后排序输出 answer_list = [] # 需要一个求阶乘的函数 def …… 题解列表 2020年03月08日 0 点赞 0 评论 530 浏览 评分:0.0
蓝桥杯算法训练-二进制数数-题解(Python代码) Python的bin()函数的返回值为Str型 摘要:用Python的bin()方法,将十进制数转换成二进制数,再用count方法统计‘1’出现的次数即可。 ```python l,r = map(int,input().split()) # 由…… 题解列表 2020年03月08日 0 点赞 0 评论 833 浏览 评分:9.9
[出圈]-题解(Python代码) 摘要: while True: n_number, m_number = map(int, input().split()) # 输入人数和m people_num…… 题解列表 2020年03月07日 0 点赞 0 评论 1014 浏览 评分:9.9
[亲和数]-题解(Python代码) 摘要: test_count = int(input()) answer_list = [] # 存放每一组的结果 def getSum(number): …… 题解列表 2020年03月07日 0 点赞 0 评论 1566 浏览 评分:8.0
C语言训练-邮票组合问题*-题解(Python代码) 摘要: three_choose = 4 + 1 # 对于3分的,有5种可能选择的情况, 选0个, 1个。。。。4个 five_choose = 3 + 1 # 对于5分的,有4种可能选择的…… 题解列表 2020年03月07日 0 点赞 0 评论 505 浏览 评分:0.0
蓝桥杯算法提高VIP-快速幂 (Python代码) 摘要:python中没有对int的限制, 且存在pow()内置函数,直接使得完成乘方求模工作 ```python N, M, P = map(int, input().split()) pri…… 题解列表 2020年03月06日 0 点赞 0 评论 558 浏览 评分: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 评论 740 浏览 评分:8.4
[编程入门]链表合并-题解(Python代码) 摘要: dic_a = {} dic_b = {} N, M = map(int, input().split()) for i in range(N): …… 题解列表 2020年03月05日 0 点赞 1 评论 1050 浏览 评分:9.0