题解列表

筛选

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) #首……

二维费用01背包(Python)

摘要:# 题目来源ACM训练系统 第3056题# 01背包# 1.获取数据n,m,k=map(int,input().split())list1=[]for i in range(k):    list1.……