1164: 数组的距离 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split()) ls=list(map(int,input().split())) lt=list(map(int,inpu…… 题解列表 2022年02月03日 0 点赞 0 评论 264 浏览 评分:0.0
Minesweeper(Python) 摘要:解题思路注意事项:参考代码:con=1while True: a, b = map(int, input().strip().split()) if a == 0 and b == 0: …… 题解列表 2022年02月03日 0 点赞 0 评论 276 浏览 评分:9.9
1165: 明明的随机数 摘要:解题思路:注意事项:参考代码:n = int(input()) l=set(map(int,input().split())) l=list(l) l.sort() print(len(l))…… 题解列表 2022年02月03日 0 点赞 0 评论 180 浏览 评分:0.0
编写题解 2006: 寻找奇整数 摘要:```python s=[3,7,5,13,25,45,78,23,8,33,9,19,28,41,50] k=int(input()) if k%2==0: print('Error…… 题解列表 2022年02月03日 0 点赞 0 评论 357 浏览 评分:9.9
python-四平方和 摘要:解题思路:注意事项:参考代码:from math import sqrt def f(n): for i in range(int(sqrt(n))+1): …… 题解列表 2022年02月03日 0 点赞 0 评论 447 浏览 评分:0.0
八种排序算法(python实现) 摘要:""" 以下是八种升序排序算法模板 分为初级排序算法和高级排序算法 初级排序算法:插入排序,选择排序,冒泡排序 高级排序算法:归并排序,快速排序,希尔排序,堆排序,桶排序 时间复杂度:…… 题解列表 2022年02月03日 0 点赞 0 评论 769 浏览 评分:9.9
【蓝桥杯】【python】能量项链 摘要:解题思路:最初分析题目发现,只要每次都把最小值放在中间,例如:题目中给出的数据,第一步就把2给放在中间,进行间接消除;然后再依次寻找最小值进行消除。所以首先写一个函数,用于输入最小值的位置信息后,计算…… 题解列表 2022年02月02日 0 点赞 0 评论 366 浏览 评分:9.9
用切片来写 摘要:a=input()count=len(a)z=count-1q=countfor i in range(count): print(a[z:q],end='') z-=1 …… 题解列表 2022年02月02日 0 点赞 0 评论 429 浏览 评分:9.9
python-奥运会开幕式 摘要:解题思路:具体思路可以参考下面博客里的内容,写的很详细。https://blog.csdn.net/weixin_44958234/article/details/107802116注意事项:参考代码…… 题解列表 2022年02月02日 0 点赞 0 评论 447 浏览 评分:0.0
尼科彻斯定理(python解法)清晰易懂 摘要:解题思路:看测试案列找规律: 13*13*13=2197=157+159+161+163+165+167+169+171+173+175+177+179+181找到以下规律: …… 题解列表 2022年02月02日 0 点赞 1 评论 1310 浏览 评分:9.9