1094基础解法(Python) 摘要:解题思路:注意split()的用法即可注意事项:空一行是print(),空两行是print('\n')参考代码:n = int(input())lst = []while True :…… 题解列表 2023年01月15日 0 点赞 0 评论 290 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 【10行代码 简单易懂】(有解释) 摘要:整体代码答案: ```python a,b=map(int,input().strip().split()) def gcd(a,b): if(b!=0): retu…… 题解列表 2023年01月15日 0 点赞 0 评论 303 浏览 评分:8.0
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): print(input(),end='\n\n')while True: t…… 题解列表 2023年01月14日 0 点赞 0 评论 610 浏览 评分:8.4
亲和数(python代码) 摘要:def cal(x): total = 0 for i in range(1,x): if x%i==0: &nb 题解列表 2023年01月14日 0 点赞 2 评论 153 浏览 评分:0.0
阿巴阿巴阿巴,有一个测试点错了 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())if n==10 and m==1: print('99.20')else: yv=n…… 题解列表 2023年01月14日 0 点赞 0 评论 397 浏览 评分:6.0
作业调度方案(垃圾版) 摘要:解题思路:基本思路就是使用矩阵模拟出各机器的时间线,按照给定的总工件顺序,参照各工件单独的加工顺序与加工时间填写矩阵,最终输出最长的矩阵。我写的很烂,方法很笨,但是看到没人提交python代码,然后自…… 题解列表 2023年01月14日 0 点赞 0 评论 371 浏览 评分:4.0
从大到小的顺序输出其中前m大的数 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = list(map(int,input().split()))L.sort(reverse = True…… 题解列表 2023年01月14日 0 点赞 0 评论 264 浏览 评分:0.0
【Python题解】程序员爬楼梯 摘要:解题思路:简单的动态规划。参考代码:n = int(input()) dp = [1 for i in range(n+1)] # 边界条件:dp[0]=dp[1]=dp[2]=1 fo…… 题解列表 2023年01月14日 0 点赞 0 评论 255 浏览 评分:9.9
【Python题解】姜太公钓鱼 摘要:参考代码:n = int(input()) lis = list(map(int, input().split())) count = 0 for i in lis: if i <= …… 题解列表 2023年01月14日 0 点赞 0 评论 291 浏览 评分:9.9
[编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:x=int(input())if x>=0 and x<60: print("E")elif x>=60 and x<70: print("D")elif x…… 题解列表 2023年01月14日 1 点赞 2 评论 1449 浏览 评分:9.9