题解列表

筛选

编写题解 1227: 日期排序

摘要:解题思路:注意事项:参考代码:lis=[] while True:     try:         dat=list(map(str,input().split('/'))) ……
优质题解

蓝桥杯基础练习VIP-回形取数-题解(Python代码)

摘要:# 1. 解题思路 1. 当前方向上无数可取或已经取过时,则左转90度,一开始位于矩阵左上角,方向向下。可以看出,它取数的方向是下->右->上->左,这样循环着来的。本题的关键是看转弯的地方该如何设……

编写题解 1224: 整除的尾数

摘要:解题思路:注意事项:参考代码:while True:     a,b=map(int,input().split())     if a==0 and b==0:         break ……

编写题解 1223: 敲七游戏

摘要:解题思路:注意事项:参考代码:n=int(input()) s=0 for i in range(7,n+1):     if i%7==0 or '7' in str(i): ……

很简单的思路啦其实

![在这里插入图片描述](https://img-blog.csdnimg.cn/8b34d7db0f6d4147933af77a96f4886a.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,

Hello,world!

摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for……

明明的随机数(Python代码) 3行完事 附解题思路

##解题思路:首先使用***列表推导式***来进行把***input().split()***分段后的列表元素转为**int类型**,接着使用***set()***直接转为集合进行***去重***操作,转为列表后直接使用***sorted()***来排序再使用***列表推导式***将列表内的元素转为*

周期计算距离

```pythonm,n=map(int,input().split())s=0foriinrange(1,n+1):s+=m+m/2#计算落下和弹起的距离,为一个周期m=m/2#下一次落下的高度print('%.2f%.2f'%(m,s-m))```