题解列表

筛选

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(……

编写题解 1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split(" ")))b = int(input())b  = b+30count = 0for i in range……

就是通过分支选择来写

摘要:解题思路:注意事项:“整数”还有一个长边和短边的顺序好像也要调整一下参考代码:def inchjudge1(n):    lside=1189     #初始设置边长    rside=841    ……

python最长字符串 带解析

摘要:s=list(input().split()) #以列表方式存储Max=len(s[0]) #记录字符串最大长度 首先记录第一个n=[] #记录字符串最大长度对应字符的下标n.append(0) #首……