题解列表

筛选

1115: DNA python版本

摘要:```python N = int(input()) for z in range(N): if z != 0: print() a,b=map(int,input().strip(……

1095 清晰解答

摘要:解题思路:注意事项:就是坑,考虑的细节较多参考代码:while True:    try:        i,j = map(int,input().split())        print(i,j……

1111: Cylinder ,python版本

摘要:pi = 3.14159265358while True: try: w,h=map(int,input().strip().split()) if w == 0 and h == 0:    ……

1171: 蟠桃记

摘要:解题思路:从最后一天往前推注意事项:参考代码:while True:    n=int(input())    s=1    for i in range(n-1):        s=(s+1)*2……

1183: 人见人爱A+B

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    a,b,c,d,e,f=map(int,input().split())    s=(c+f)%6……
优质题解

1110: 2^k进制数,动态规划dp解决!

摘要:##解题思路: 利用动态规划的思想: 二维矩阵的dp[i][j]值的含义是:当一共有(i+1)位数字且最高位数字位数字是j的时候满足条件的数字总个数是多少。 ###初始条件: dp[0][]=……