编写题解 1040: [编程入门]实数的打印(python 超短) 摘要:#只要理解代码的每个部分在干什么就可以了user = float(input()) for i in range(1, 4): print(("{:6.2f} ".format(user)…… 题解列表 2022年04月18日 0 点赞 0 评论 704 浏览 评分:9.9
信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码) 摘要:##### 先上代码: ```python from queue import Queue as Qu class BFSNode(): # 节点 def __init__(sel…… 题解列表 2022年04月18日 0 点赞 2 评论 813 浏览 评分:10.0
编写题解 1073: 弟弟的作业(python 简单易懂) 摘要:score = 0 while True: try: user = input().split("=") if user[1] == "?&quo 题解列表 2022年04月18日 0 点赞 0 评论 665 浏览 评分:9.3
蓝桥杯2016年第七届真题-最大比例 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())l=list(map(int,input().split()))s=set(l)l=list(s)l.so…… 题解列表 2022年04月18日 0 点赞 0 评论 464 浏览 评分:9.9
python--代码(利用字典解题) 摘要:解题思路:注意事项:测试数据大,使用循环肯定超时,用字典来计数节省时间,最后再对字典排序输出。参考代码:s=input()a={}m=[]for i in range(65,91): …… 题解列表 2022年04月17日 0 点赞 0 评论 669 浏览 评分:9.0
蓝桥杯2022年第十三届省赛真题-数位排序 摘要:解题思路:注意事项:参考代码:n=int(input())m=int(input())d={}for i in range(1,n+1): s=list(map(int,str(i))) …… 题解列表 2022年04月16日 0 点赞 3 评论 1478 浏览 评分:8.9
应该不会要这么多for循环,但不失为一种直肠子的解法 摘要:解题思路:注意事项:参考代码:n = int(input())list_m = list(map(int,input().strip().split()))m = int(input())other …… 题解列表 2022年04月15日 0 点赞 0 评论 236 浏览 评分:0.0
[编程入门]阶乘求和-题解(Python花式解法) 摘要:方法很多,不局限于一种思路 **自带阶乘函数** 有现成的函数直接拿来用就好了 ```python from math import factorial print(sum(map(fa…… 题解列表 2022年04月14日 0 点赞 0 评论 617 浏览 评分:0.0
感觉自己倒巧了,应该不是用这几个函数硬整出来的 摘要:解题思路:先用max(list1)求列表最大值,然后list1.index(max(list1))找出它的索引,然后才找打了list[最大值]和list[最小值]注意事项:参考代码:list1 = l…… 题解列表 2022年04月14日 0 点赞 0 评论 305 浏览 评分:0.0
一个想法,反正第一想法是这个思路 摘要:解题思路:注意事项:默认是只转换小写字母参考代码:a = list(input())#print(a)for i in range(len(a)): ASCII = ord(a[i]) i…… 题解列表 2022年04月14日 0 点赞 0 评论 225 浏览 评分:0.0