简单的暴力求法(Python) 摘要:S1='AWF'S3='DPG'while 1: S=input() if S=='END': break for i …… 题解列表 2021年04月15日 0 点赞 0 评论 384 浏览 评分:8.0
不是很好的方法(Python) 摘要:YMD=[0,31,28,31,30,31,30,31,31,30,31,30,31]def runnian(Y1): if Y1%100==0: return 1 else…… 题解列表 2021年04月15日 0 点赞 0 评论 390 浏览 评分:0.0
1095: The 3n + 1 problem Python解法(25行简单易懂) 摘要:解题思路:注意事项: i,j的大小不确定的,要分类来做,我第一次就错了参考代码:while True: t = False m = [] a, b = map(int,i…… 题解列表 2021年04月15日 0 点赞 0 评论 877 浏览 评分:9.9
直接查找(Python) 摘要:S={}n=int(input())while n>0: t=int(input()) if t in S: S[t]=S[t]+1 else: S[t]…… 题解列表 2021年04月15日 0 点赞 0 评论 567 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 摘要:```python num = int(input()) ls = list(map(int,input().split())) a = ls[0] sum = len(ls) co…… 题解列表 2021年04月15日 0 点赞 0 评论 754 浏览 评分:0.0
母牛的故事Python 9行解法 摘要:解题思路:注意事项:参考代码:list = [1,2,3]##第一年1只,第二年2只,第三年3只 for i in range(3,1000): list.append(list[i-1]…… 题解列表 2021年04月15日 0 点赞 0 评论 579 浏览 评分:5.3
直接计算(Python) 摘要:N=int(input())num=0for i in range(1,N//5+1): for j in range(1,(N-i*5)//2+1): if(5*i+2*j<N)…… 题解列表 2021年04月15日 0 点赞 0 评论 864 浏览 评分:0.0
Python自己调用自己 摘要:a,n,m,x=map(int,input().split())def qiushu(zs,ss,s,dj): if dj==n-1: if zs==m: r…… 题解列表 2021年04月15日 0 点赞 0 评论 633 浏览 评分:9.9
优质题解 详细的代码注释及解析 摘要:解题思路:可以把排列的后的结果想成一个数轴,计算给出的两点的坐标, w,m,n x = m//w y=m%w & 题解列表 2021年04月15日 0 点赞 0 评论 669 浏览 评分:0.0
平凡の解法 摘要:解题思路:我们看到这个题目,可以很快的转化为作为求排序后数组的两两之间的最小问题,当然也可以不需要排序,当然我这边直接偷懒直接sort,但是你追求效率的话你也可以直接快排,二分排,创建一个比较的大的假…… 题解列表 2021年04月14日 0 点赞 1 评论 634 浏览 评分:9.9