编写题解 1190: 剔除相关数 摘要:解题思路:注意事项:参考代码:def to(a): ls=[i for i in str(a)] ls.sort() return ls def isgu(ls):…… 题解列表 2022年02月19日 0 点赞 0 评论 260 浏览 评分:0.0
找到一个易漏点 摘要:解题思路:注意事项:测试时输入数值时存在例如:41 1 2 1 2 3 42 3 4 5没有补齐0的操作,因此会导致后续索引超出范围,因此需要增加补0操作,本地已运行成功但还是只有87%的通过…… 题解列表 2022年02月18日 0 点赞 0 评论 444 浏览 评分:6.0
编写题解 1182: 人民币问题 摘要:解题思路:注意事项:参考代码:n=int(input()) a=((n-3)//5) b=((n-6)//2) s=0 for i in range(1,a+1): for j in…… 题解列表 2022年02月18日 0 点赞 0 评论 260 浏览 评分:0.0
1181: 不容易系列2 摘要:解题思路:两种方法 :一种用数学组合,一种用递归注意事项:参考代码:数学方法:def f(x): s=1 for i in range(1,x): s *=i…… 题解列表 2022年02月18日 0 点赞 0 评论 328 浏览 评分:0.0
编写题解 1179: 上车人数 摘要:解题思路:注意事项:参考代码:a,n,m,x=map(int,input().split()) up=[a] def get(a,x,z): up=[a,x] down=[0,…… 题解列表 2022年02月18日 0 点赞 0 评论 344 浏览 评分:0.0
DNA题目详解 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): m,v = map(int,input().split()) for j in rang…… 题解列表 2022年02月18日 0 点赞 0 评论 241 浏览 评分:0.0
编写题解 1180: 不容易系列 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): a=int(input()) y=3 for j in range(a…… 题解列表 2022年02月17日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 1173: 计算球体积 摘要:解题思路:注意事项:参考代码:while True: try: r=float(input()) print('%.3f'%((4/3)*…… 题解列表 2022年02月17日 0 点赞 0 评论 492 浏览 评分:0.0
1172: 计算两点间的距离 摘要:解题思路:直角三角形,三条边的关系:两直边平方和等于斜边平方注意事项:参考代码:while True: try: x1,y1,x2,y2=map(int,input().s…… 题解列表 2022年02月17日 0 点赞 0 评论 451 浏览 评分:6.0
编写题解 1171: 蟠桃记 摘要:解题思路:注意事项:参考代码:while True: try: n=int(input()) ls=[1] for i in&nb 题解列表 2022年02月17日 0 点赞 0 评论 270 浏览 评分:0.0