题解列表

筛选

一行导包,两行代码

摘要:解题思路:from datetime import date year,month,day=map(int,input().strip().split()) print(date(year,mon……

python 也就五六行吧 100

摘要:n=int(input().strip());la=[] for i in range(n):     l=list(map(int,input().split()))     if len(l……

密码破译[使用Python]

摘要:str1 = input() strList = list(str1) count = 0 chrNum = 0 while count < len(strList):     chrNum……

python-动态规划dp解题(简洁明了)

摘要:解题思路:01背包问题,利用动态规划思想,创建三个一维数组w[i],v[i],dp[i],分别用来存总价值=重要度*价格,价格,最大价值。注意事项:参考代码:n,m=map(int,input().s……