2839: 石头剪刀布(Python) 摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma…… 题解列表 2023年02月23日 0 点赞 0 评论 487 浏览 评分:9.5
2819: 数字反转 摘要:解题思路:注意事项:参考代码:a = input() a = a[::-1] # 字符串逆序 if a[len(a)-1] == '-': # 如果输入负数 a = …… 题解列表 2023年02月23日 0 点赞 0 评论 568 浏览 评分:9.9
2826: 雇佣兵(python) 摘要:解题思路:注意事项:参考代码:from decimal import * M,N,X = map(int,input().split()) while X > 0 and X * N >= M: …… 题解列表 2023年02月22日 0 点赞 0 评论 359 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:input()lst=list(set(int(i) for i in input().split()))lst.sort()lst=list(map(str,lst))…… 题解列表 2023年02月22日 0 点赞 0 评论 415 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]: print(i,end=' ')代码2:a = input() a = a[::…… 题解列表 2023年02月22日 0 点赞 0 评论 498 浏览 评分:9.0
2817: 级数求和 摘要:注意事项:参考代码:Sn = n = 0 k = int(input()) while True: n = n + 1 Sn = Sn + 1/n if Sn > 题解列表 2023年02月21日 0 点赞 0 评论 388 浏览 评分:2.0
2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:s = 0 n = int(input()) l = list(map(int,input().split())) for i in l: a = i %…… 题解列表 2023年02月21日 0 点赞 0 评论 400 浏览 评分:9.9
2820: 含k个3的数(python) 摘要:解题思路:注意事项:参考代码:m,k = input().split() y = "NO" if int(m) % 19 == 0 and m.count("3") == int(k): …… 题解列表 2023年02月21日 0 点赞 0 评论 472 浏览 评分:9.9
2819: 数字反转(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0: print("-",end = "") n = -n n = str(n)[::-1] …… 题解列表 2023年02月21日 0 点赞 0 评论 390 浏览 评分:0.0
2815: 求特殊自然数(python) 摘要:解题思路:注意事项:参考代码:for a in range(1,7): for b in range(0,7): for c in range(1,7): …… 题解列表 2023年02月21日 0 点赞 1 评论 485 浏览 评分:9.9