题解列表

筛选

2826: 雇佣兵(python)

摘要:解题思路:注意事项:参考代码:from decimal import * M,N,X = map(int,input().split()) while X > 0 and X * N >= M:……

2818: 分离整数的各个数位

摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]:     print(i,end=' ')代码2:a = input() a = a[::……

2817: 级数求和

摘要:注意事项:参考代码:Sn = n = 0 k = int(input()) while True:     n = n + 1     Sn = Sn + 1/n      if Sn >

2820: 含k个3的数(python)

摘要:解题思路:注意事项:参考代码:m,k = input().split() y = "NO" if int(m) % 19 == 0 and m.count("3") == int(k):  ……

2819: 数字反转(python)

摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0:     print("-",end = "")     n = -n n = str(n)[::-1]……

2815: 求特殊自然数(python)

摘要:解题思路:注意事项:参考代码:for a in range(1,7):     for b in range(0,7):         for c in range(1,7):        ……

1332: 津津的储蓄计划(python)

摘要:解题思路:注意事项:参考代码:m = 0 x = 0 month = 1 isTrue = True while True:     try:         n = int(input(……