懂得都懂,不懂的我也没办法 摘要:from collections import defaultdict def num_dc(A): res = 0 n = N dp = [defaultdict(i…… 题解列表 2023年10月23日 0 点赞 0 评论 352 浏览 评分:9.9
11111111111111111 摘要:解题思路:A,B=map(int,input().strip().split())n=A*Bprint(n)注意事项:111111111参考代码:111111111111…… 题解列表 2023年10月22日 0 点赞 0 评论 514 浏览 评分:0.0
钟神赛车Python(菜鸟第一次写,查了好几个函数,有点笨) 摘要:解题思路:用到了两个函数1.sys模块里的stdin,解决了多行输入的问题2.itertools里的permutations函数,用于生成钟神车速的所有排列组合再用for循环对钟神和某君的车速进行对比…… 题解列表 2023年10月22日 0 点赞 1 评论 274 浏览 评分:9.9
编写题解 1671: 小九九 摘要:````python for i in range(1,10): for j in range(1,10): if i>=j: print("{1}…… 题解列表 2023年10月20日 0 点赞 0 评论 347 浏览 评分:0.0
动态规划母牛的故事 摘要:解题思路:注意事项:参考代码:N = [] # 所有要求的年份(题意是求第n年初,所有之后索引值要减一) while 1: n = int(input()) if…… 题解列表 2023年10月20日 0 点赞 0 评论 431 浏览 评分:7.0
1019: [编程入门]自由下落的距离计算 摘要:```python m,n=map(int,input().split()) s=0 for i in range(1,n+1): s+=3m/2*i b = m/2i print(“%.…… 题解列表 2023年10月20日 0 点赞 0 评论 490 浏览 评分:6.0
贪心智力大冲浪 摘要:解题思路: n个时段n个游戏,每个时段只能玩一个游戏,所以只需要给玩的游戏排个次序使总罚款最小。贪心点:按时段依次选择ddl(截止时间)最前的先玩,不着急的后玩,如果ddl相同则wi罚款多的先玩罚款…… 题解列表 2023年10月20日 0 点赞 0 评论 467 浏览 评分:9.9
贪心同学的等待 摘要:解题思路: 动作快的排前面,墨迹的排后面注意事项:参考代码:# 超时了 N = int(input()) list = [int(i) for i in input().split()] lis…… 题解列表 2023年10月20日 1 点赞 0 评论 314 浏览 评分:6.0
删除单词后缀 摘要:解题思路:注意事项:需要判断单词删除后缀后是否为0参考代码:n=input()if ((n[-2::]=='er') and (len(n)!=2)): print(n[:-2:…… 题解列表 2023年10月19日 0 点赞 0 评论 307 浏览 评分:0.0
密码翻译:python 摘要:解题思路:了解ASCII码值与字符间的转换,ord()函数是将字符转成对应的ASCII码值,chr()函数是将ASCII码值转成对应的字符注意事项:参考代码:n=input()s=[]#print(o…… 题解列表 2023年10月19日 0 点赞 0 评论 430 浏览 评分:9.9