编写题解 1018: [编程入门]有规律的数列求和-递归 摘要:解题思路:注意事项:参考代码:n=int(input())f1=1f2=2s=f2/f1for i in range(2,n+1): f1,f2=f2,f1+f2 s=s+f2/f1pri…… 题解列表 2022年06月16日 0 点赞 0 评论 405 浏览 评分:0.0
题解 1909: 蓝桥杯算法提高VIP-拿糖果-python 摘要:解题思路:动态规划注意事项:注意超时!参考代码:import mathdef zys(n,zs): #计算质因数 res =[] d = math.sqrt(n) for i in…… 题解列表 2022年06月16日 0 点赞 0 评论 367 浏览 评分:9.9
编写题解 1669: 求圆的面积 摘要:解题思路:导入math库,进行求面积之后,注意输出小数点后两位注意事项:导入math库参考代码:import matha = float(input())p = math.pis = a*a*ppri…… 题解列表 2022年06月16日 0 点赞 0 评论 973 浏览 评分:9.9
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:a = ['C', 'h', 'i', 'n', 'a']c = []for i in a…… 题解列表 2022年06月16日 0 点赞 0 评论 390 浏览 评分:7.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:a=int(input())sn=s=0i=1while i<=a: s=s+2*(10**(i-1)) sn=sn+s i+=1print(sn)…… 题解列表 2022年06月15日 0 点赞 0 评论 450 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:str1=input()mu,number,kong,n=0,0,0,0list=["0","1","2","3","4","5","6","7","8","9"]for…… 题解列表 2022年06月14日 0 点赞 0 评论 524 浏览 评分:0.0
编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())max=aif max<b: max=b if max<c: max=celse: …… 题解列表 2022年06月14日 0 点赞 0 评论 415 浏览 评分:0.0
小南解题--纸张尺寸--58ms 摘要:zgn946 13:48 2022/6/12省赛时写的--小南'''for i in range(9): d=[max(b,c)//2,min(b,c)] d.s…… 题解列表 2022年06月12日 0 点赞 0 评论 761 浏览 评分:6.7
1183: 人见人爱A+B 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a,b,c,d,e,f=map(int,input().split()) s=(c+f)%6…… 题解列表 2022年06月12日 0 点赞 0 评论 412 浏览 评分:6.0
生日日数——python 摘要:解题思路:注意事项:参考代码:def f(year1): if (year1 % 100 != 0 and year1 % 4 == 0) or year1 % 400 == 0: …… 题解列表 2022年06月10日 0 点赞 0 评论 280 浏览 评分:0.0