2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0flag = Falsefor i in range(1,n+1,1): flag = False if i % 7…… 题解列表 2024年07月31日 0 点赞 0 评论 355 浏览 评分:0.0
题解 2821: 开关灯 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().strip().split())l = [0 for i in range(n)]for i in range(2,m+1,1):…… 题解列表 2024年07月30日 0 点赞 0 评论 283 浏览 评分:0.0
8行:帅破天际 摘要:解题思路:注意事项:参考代码:wlb=[]for i in range(5): row=input() wlb.append(row)n,m=map(int,input().split()…… 题解列表 2024年07月30日 1 点赞 0 评论 569 浏览 评分:9.9
2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())c = 0for i in str(a): if i == '3': c …… 题解列表 2024年07月30日 0 点赞 0 评论 199 浏览 评分:0.0
2819: 数字反转 摘要:解题思路:注意事项:参考代码:n = int(input())if n >= 0: s = str(n)[::-1] print(int(s))else: n = -n s =…… 题解列表 2024年07月30日 0 点赞 0 评论 211 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n = str(input())for i in range(len(n)-1,-1,-1): print(n[i],end=" ")…… 题解列表 2024年07月30日 0 点赞 0 评论 258 浏览 评分:0.0
2817: 级数求和 摘要:解题思路:注意事项:参考代码:k = int(input())s = 0n = 0while k >= s: n += 1 s += 1/nprint(n)…… 题解列表 2024年07月30日 0 点赞 0 评论 209 浏览 评分:0.0
统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))count = 0for i in l: a = i%10 …… 题解列表 2024年07月30日 0 点赞 0 评论 400 浏览 评分:0.0
题解 2815: 求特殊自然数 摘要:解题思路:注意事项:参考代码:def switch_n(n,d): l = [] while n > 0: l.append(str(n % d)) n = n…… 题解列表 2024年07月30日 0 点赞 0 评论 230 浏览 评分:0.0
题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:n = int(input())c = 0max = 0while n: a,b = map(int,input().split()) if 90 <= a …… 题解列表 2024年07月30日 0 点赞 0 评论 334 浏览 评分:0.0