python7行解决 摘要:解题思路:注意事项:参考代码:a = [int(i) for i in input().split()]b = int(input())c = 0for i in a: if b + 30 >=…… 题解列表 2024年10月20日 0 点赞 0 评论 462 浏览 评分:9.9
求平均工资 摘要:参考代码:n=int(input()) nn=n sum=0 while n!=0: a=int(input()) sum+=a n-=1 print(sum//…… 题解列表 2024年10月19日 0 点赞 0 评论 412 浏览 评分:0.0
利用python循环和数列解决 摘要:注意事项:菜鸡解法,分别看需要满足的条件依次进行解题写代码来满足他参考代码:a = int(input())b = []f = []c = 0d = 0e = 0for i in range(a): …… 题解列表 2024年10月18日 0 点赞 0 评论 285 浏览 评分:9.9
利用for循环与map函数,四行输出水仙花数代码 摘要:解题思路:注意事项:不会可以问,看到会回复参考代码:for i in range(100,999): a,b,c=map(int,str(i)) if i==a**3+b**3+c**3:…… 题解列表 2024年10月17日 1 点赞 0 评论 433 浏览 评分:9.9
大数Python写 摘要:参考代码:while True: n=int(input()) if n==0: break else: if n%17==0: 题解列表 2024年10月17日 0 点赞 0 评论 327 浏览 评分:0.0
2002: 计算数字个数(python) 摘要:### 无需多言,代码如下: ~~~python print(len([i for i in input() if i.isdigit()])) ~~~  摘要:### 代码如下 ~~~python a = [0] * 4 for i in input(): if i.isalpha(): a[0] += 1 e…… 题解列表 2024年10月15日 1 点赞 0 评论 272 浏览 评分:9.9
1052: [编程入门]链表合并(python) 摘要:### 代码如下: ~~~python n,m = map(int,input().split()) d = {} for i in range(m+n): k,v = map(…… 题解列表 2024年10月15日 3 点赞 0 评论 280 浏览 评分:10.0
1122: C语言训练-亲密数(python) 摘要:#### set() - 集合不会有重复元素,可以用来清理重复元素 - 集合是无序的,需要转成`list`然后用`sort()`排序 **二维数组排序** ~~~pytho…… 题解列表 2024年10月15日 0 点赞 0 评论 345 浏览 评分:9.9
连连看题解 摘要:解题思路:注意事项:参考代码:n, m = map(int, input().split())N = int(2e3+5)st1 = [[0] * N for _ in range(N)]st2 = …… 题解列表 2024年10月15日 2 点赞 0 评论 1182 浏览 评分:10.0