简单易于理解的天数问题——Python 摘要:a,b,c=map(int,input().strip().split())m=[31,28,31,30,31,30,31,…… 题解列表 2025年01月16日 1 点赞 0 评论 203 浏览 评分:10.0
简单易于理解的字符串提取问题——Python 摘要:a=eval(input())b=list(input())c=eval(input())foriinb[c-1:]:&nb…… 题解列表 2025年01月16日 1 点赞 0 评论 266 浏览 评分:10.0
筛选N以内的素数python 摘要:n=int(input())for i in range(2,n): for j in range(2,i): if i%j==0: brea…… 题解列表 2025年01月16日 1 点赞 0 评论 501 浏览 评分:0.0
迭代法求平方根python 摘要:参考代码:a=int(input())b=awhile True: c=(b+a/b)/2 if abs(b-c)<0.00001: …… 题解列表 2025年01月16日 1 点赞 0 评论 502 浏览 评分:10.0
简单易于理解的整数处理问题——Python 摘要:a=list(map(int,input().split()))m1=max(a)m2=min(a)b=a.index(m1)c=a.index(m2)a[b]=a[-1]a[…… 题解列表 2025年01月14日 0 点赞 0 评论 242 浏览 评分:0.0
Python | 生成器 摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203…… 题解列表 2025年01月14日 1 点赞 0 评论 117 浏览 评分:10.0
python|sys.stdin 摘要:```pythonimport sysfrom collections import Counter# python可能超时过不了全部,使用sys.stdin一次all in输入数据,…… 题解列表 2025年01月14日 1 点赞 0 评论 127 浏览 评分:10.0
python|并查集 摘要:```pythonclass UnionFind: def __init__(self, n): self.parents = list(range(n))…… 题解列表 2025年01月14日 0 点赞 0 评论 86 浏览 评分:0.0
超级简单易懂 摘要:解题思路:先按照行找到最大值,再按照列比对是否为最小值,匹配成功则输出鞍点注意事项:参考代码:l = []for i in range(5): s = list(map(in…… 题解列表 2025年01月12日 0 点赞 0 评论 259 浏览 评分:10.0
编写题解 1015: [编程入门]求和训练python 摘要:参考代码:a,b,c=map(int,input().split())s1=0s2=0s3=0for i in range(1,a+1): s1+=ifor i in ran…… 题解列表 2025年01月12日 0 点赞 0 评论 413 浏览 评分:0.0