题解列表

筛选

1100: 采药(python代码)

摘要:解题思路:注意事项:参考代码:t,n=map(int,input().split()) ls=[[0,0]] for i in range(n):     time,value=map(int,……
优质题解

python-2^k进制数

摘要:解题思路:动态规划建立一个大小为(m+1)*(maxnum)的二维数组dp。其中m代表r最多能划分的位数,maxnum代表r中每一位的最大值。dp[i][j]代表r有i位,最高位为j时有多少种可能。①……

1184: 众数问题

摘要:解题思路:注意事项:参考代码:n=int(input()) ls=[] for i in range(n):     a = int(input())     ls.append(a) st……

编写题解 1072: 汽水瓶

摘要:while 1:     t=int(input())     if t==0:         break     else:         a=[0,1]   &nb

1183: 人见人爱A+B

摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n):     AH,AM,AS,BH,BM,BS=map(int,input().split())……