题解列表
自定义函数处理最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:def max_min(m,n): lst = [] for i in range(1,m): if m%i==0: ls……
编写题解 1040: [编程入门]实数的打印(python 超短)
摘要:#只要理解代码的每个部分在干什么就可以了user = float(input())
for i in range(1, 4):
print(("{:6.2f} ".format(user)……
信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码)
摘要:##### 先上代码:
```python
from queue import Queue as Qu
class BFSNode(): # 节点
def __init__(sel……
编写题解 1073: 弟弟的作业(python 简单易懂)
摘要:score = 0
while True:
try:
user = input().split("=")
if user[1] == "?&quo
蓝桥杯2016年第七届真题-最大比例
摘要:解题思路:注意事项:参考代码:from math import *n=int(input())l=list(map(int,input().split()))s=set(l)l=list(s)l.so……
python--代码(利用字典解题)
摘要:解题思路:注意事项:测试数据大,使用循环肯定超时,用字典来计数节省时间,最后再对字典排序输出。参考代码:s=input()a={}m=[]for i in range(65,91): ……
蓝桥杯2022年第十三届省赛真题-数位排序
摘要:解题思路:注意事项:参考代码:n=int(input())m=int(input())d={}for i in range(1,n+1): s=list(map(int,str(i))) ……
应该不会要这么多for循环,但不失为一种直肠子的解法
摘要:解题思路:注意事项:参考代码:n = int(input())list_m = list(map(int,input().strip().split()))m = int(input())other ……
[编程入门]阶乘求和-题解(Python花式解法)
摘要:方法很多,不局限于一种思路
**自带阶乘函数**
有现成的函数直接拿来用就好了
```python
from math import factorial
print(sum(map(fa……