财务管理!!!! 摘要:解题思路:注意事项:参考代码:a1=0a3=0while a1<12: a2=float(input()) a3+=a2 a1+=1a4=a3/12print("$%.2f"%a4)…… 题解列表 2023年10月30日 0 点赞 0 评论 733 浏览 评分:9.9
分段函数!!! 摘要:解题思路:注意事项:参考代码:n=float(input())0<=n<=20a1=2.5-na2=2-1.5*(n-3)*(n-3)a3=n/2-1.5if 0<=n<5: print("%.…… 题解列表 2023年10月29日 0 点赞 1 评论 618 浏览 评分:9.9
python搜索,开两个数组记录同行同列 摘要: a,b=map(int,input().split()) while a!=-1 and b!=-1: c=[] d=[0 for x in range(a)] e…… 题解列表 2023年10月29日 0 点赞 0 评论 607 浏览 评分:0.0
在原数组中搜索能互质的数---在剩下的数中搜索能互质的数 摘要: n=int(input()) b=list(map(int,input().split())) def gcd(a,b): if a%b == 0: return …… 题解列表 2023年10月28日 0 点赞 0 评论 610 浏览 评分:0.0
深搜,把搜到不同字母记录到数组之中,数组的最大长度就是解 摘要:r,s=map(int,input().split()) b=[] for x in range(r): b.append(list(input())) # print(b) d=[…… 题解列表 2023年10月27日 1 点赞 0 评论 797 浏览 评分:2.0
报时助手Python 摘要:解题思路:注意事项:参考代码:nums = {0:'zero', 1:'one', 2:'two', 3:'three', 4:…… 题解列表 2023年10月27日 0 点赞 0 评论 457 浏览 评分:0.0
信息学奥赛一本通T1616-A的B次方(快速幂) 摘要:```python def f(Base,Index,Num): res=1 while Index!=0: if Index&1: …… 题解列表 2023年10月26日 0 点赞 0 评论 590 浏览 评分:9.9
优质题解 仙之巅,傲世间 摘要:参考代码:n = int(input()) s = int(input()) sumt = [0] sumc = [0] for _ in range(n): t, c = ma…… 题解列表 2023年10月26日 0 点赞 0 评论 1032 浏览 评分:9.3
不重复输出的关键是,前面的数比后面的大 摘要:n=int(input())t=ndef rec(n,res): if n<1: if len(res)==1: return for k,x …… 题解列表 2023年10月26日 0 点赞 0 评论 925 浏览 评分:7.3
不容易系列2 摘要:解题思路:注意事项:参考代码:#递归写法def f(x): if x ==1 : return 0 elif x == 2: return 1 else…… 题解列表 2023年10月26日 0 点赞 0 评论 557 浏览 评分:0.0